|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.teiid.core.TeiidRuntimeException
public class TeiidRuntimeException
A generic runtime exception which contains a reference to another exception and which represents a condition that should never occur during runtime. This class can be used to maintain a linked list of exceptions.
Subclasses of this exception typically only need to implement whatever constructors they need.
Field Summary | |
---|---|
static String |
CAUSED_BY_STRING
|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
TeiidRuntimeException()
Construct a default instance of this class. |
|
TeiidRuntimeException(String message)
Construct an instance with the specified error message. |
|
TeiidRuntimeException(String code,
String message)
|
|
TeiidRuntimeException(Throwable e)
Construct an instance with a linked exception specified. |
|
TeiidRuntimeException(Throwable e,
String message)
Construct an instance with the linked exception and error message specified. |
|
TeiidRuntimeException(Throwable e,
String code,
String message)
Construct an instance with the linked exception, error code, and error message specified. |
Method Summary | |
---|---|
Throwable |
getChild()
Deprecated. use Throwable.getCause() instead |
String |
getCode()
Get the error code. |
String |
toString()
Returns a string representation of this class. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
public static final String CAUSED_BY_STRING
Constructor Detail |
---|
public TeiidRuntimeException()
public TeiidRuntimeException(String message)
message
- The error message or a resource bundle keypublic TeiidRuntimeException(String code, String message)
public TeiidRuntimeException(Throwable e)
TeiidException
or a
MetaMatrixRuntimeException, then the code will be set to the exception's code.
e
- An exception to chain to this exceptionpublic TeiidRuntimeException(Throwable e, String message)
TeiidException
or a MetaMatrixRuntimeException, the code will be set to the exception's code.
e
- The exception to chain to this exceptionmessage
- The error message or a resource bundle keypublic TeiidRuntimeException(Throwable e, String code, String message)
TeiidException
or a MetaMatrixRuntimeException, the code will
be set to the exception's code.
e
- The exception to chain to this exceptioncode
- The error codemessage
- The error messageMethod Detail |
---|
public Throwable getChild()
Throwable.getCause()
instead
public String getCode()
public String toString()
toString
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |