|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
MetaClassException.java | - | 100% | 100% | 100% |
|
1 |
/*
|
|
2 |
* Copyright (C) The MetaClass Group. All rights reserved.
|
|
3 |
*
|
|
4 |
* This software is published under the terms of the Spice
|
|
5 |
* Software License version 1.1, a copy of which has been included
|
|
6 |
* with this distribution in the LICENSE.txt file.
|
|
7 |
*/
|
|
8 |
package org.codehaus.metaclass.introspector;
|
|
9 |
|
|
10 |
/**
|
|
11 |
* Exception if unable to locate MetaClass data
|
|
12 |
* for a particular class.
|
|
13 |
*
|
|
14 |
* @author Peter Donald
|
|
15 |
* @version $Revision: 1.2 $ $Date: 2003/11/27 08:09:53 $
|
|
16 |
*/
|
|
17 |
public class MetaClassException |
|
18 |
extends Exception
|
|
19 |
{ |
|
20 |
/**
|
|
21 |
* The throwable that caused this exception.
|
|
22 |
*/
|
|
23 |
private final Throwable m_cause;
|
|
24 |
|
|
25 |
/**
|
|
26 |
* Create an exception with specified message.
|
|
27 |
*
|
|
28 |
* @param message the message
|
|
29 |
*/
|
|
30 | 46 |
public MetaClassException( final String message )
|
31 |
{ |
|
32 | 46 |
this( message, null ); |
33 |
} |
|
34 |
|
|
35 |
/**
|
|
36 |
* Create an exception with specified message and cause.
|
|
37 |
*
|
|
38 |
* @param message the message
|
|
39 |
* @param cause the exception that caused this exception
|
|
40 |
*/
|
|
41 | 52 |
public MetaClassException( final String message,
|
42 |
final Throwable cause ) |
|
43 |
{ |
|
44 | 52 |
super( message );
|
45 | 52 |
m_cause = cause; |
46 |
} |
|
47 |
|
|
48 |
/**
|
|
49 |
* Return the exception that caused this exception (if any).
|
|
50 |
*
|
|
51 |
* @return the exception that caused this exception (if any).
|
|
52 |
*/
|
|
53 | 4 |
public Throwable getCause()
|
54 |
{ |
|
55 | 4 |
return m_cause;
|
56 |
} |
|
57 |
} |
|
58 |
|
|