Clover Coverage Report - perfectjpattern(Aggregated)
Coverage timestamp: Sat Feb 28 2009 14:35:07 CET
../../../../../../img/srcFileCovDistChart10.png 0% of files have more coverage
4   106   4   1
0   27   1   4
4     1  
1    
 
  ServiceLocatorException       Line # 30 4 0% 4 0 100% 1.0
 
  (1)
 
1    //----------------------------------------------------------------------
2    //
3    // PerfectJPattern: "Design patterns are good but components are better!"
4    // ServiceLocatorException.java Copyright (c) 2009 Giovanni Azua Garcia
5    // bravegag@hotmail.com
6    //
7    // This program is free software; you can redistribute it and/or
8    // modify it under the terms of the GNU General Public License
9    // as published by the Free Software Foundation; either version 3
10    // of the License, or (at your option) any later version.
11    //
12    // This program is distributed in the hope that it will be useful,
13    // but WITHOUT ANY WARRANTY; without even the implied warranty of
14    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15    // GNU General Public License for more details.
16    //
17    // You should have received a copy of the GNU General Public License
18    // along with this program; if not, see <http://www.gnu.org/licenses/>.
19    //
20    //----------------------------------------------------------------------
21    package org.perfectjpattern.jee.api.business.servicelocator;
22   
23    /**
24    * Service Locator exception
25    *
26    * @author <a href="mailto:bravegag@hotmail.com">Giovanni Azua</a>
27    * @version $Revision: 1.0 $Date: Feb 6, 2009 9:49:45 PM $
28    */
29    public final
 
30    class ServiceLocatorException
31    extends RuntimeException
32    {
33    //------------------------------------------------------------------------
34    // public
35    //------------------------------------------------------------------------
36    /**
37    * Constructs a new ServiceLocatorException with <code>null</code> as its
38    * detail message.
39    */
 
40  1 toggle public
41    ServiceLocatorException()
42    {
43  1 super();
44    }
45   
46    //------------------------------------------------------------------------
47    /**
48    * Constructs a new ServiceLocatorException with the specified detail
49    * message and cause. <p>Note that the detail message associated with
50    * <code>cause</code> is <i>not</i> automatically incorporated in
51    * this runtime exception's detail message.
52    *
53    * @param aMessage the detail message (which is saved for later retrieval
54    * by the {@link #getMessage()} method).
55    * @param aCause the cause (which is saved for later retrieval by the
56    * {@link #getCause()} method). (A <tt>null</tt> value is
57    * permitted, and indicates that the cause is nonexistent or
58    * unknown.)
59    */
 
60  1 toggle public
61    ServiceLocatorException(String aMessage, Throwable aCause)
62    {
63  1 super(aMessage, aCause);
64    }
65   
66    //------------------------------------------------------------------------
67    /**
68    * Constructs a new ServiceLocatorException with the specified detail
69    * message.
70    *
71    * @param aMessage the detail message. The detail message is saved for
72    * later retrieval by the {@link #getMessage()} method.
73    */
 
74  1 toggle public
75    ServiceLocatorException(String aMessage)
76    {
77  1 super(aMessage);
78    }
79   
80    //------------------------------------------------------------------------
81    /**
82    * Constructs a new ServiceLocatorException with the specified cause and a
83    * detail message of <tt>(cause==null ? null : cause.toString())</tt>
84    * (which typically contains the class and detail message of
85    * <tt>cause</tt>). This constructor is useful for runtime exceptions
86    * that are little more than wrappers for other throwables.
87    *
88    * @param aCause the cause (which is saved for later retrieval by the
89    * {@link #getCause()} method). (A <tt>null</tt> value is
90    * permitted, and indicates that the cause is nonexistent or
91    * unknown.)
92    */
 
93  1 toggle public
94    ServiceLocatorException(Throwable aCause)
95    {
96  1 super(aCause);
97    }
98   
99    //------------------------------------------------------------------------
100    // members
101    //------------------------------------------------------------------------
102    /**
103    * Default serial version ID
104    */
105    private static final long serialVersionUID = 1L;
106    }