|
||||||||||
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
com.metamatrix.core.MetaMatrixRuntimeException
public class MetaMatrixRuntimeException
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 java.lang.String |
CAUSED_BY_STRING
|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
MetaMatrixRuntimeException()
Construct a default instance of this class. |
|
MetaMatrixRuntimeException(int code,
java.lang.String message)
Construct an instance with the specified error code and message. |
|
MetaMatrixRuntimeException(java.lang.String message)
Construct an instance with the specified error message. |
|
MetaMatrixRuntimeException(java.lang.String code,
java.lang.String message)
|
|
MetaMatrixRuntimeException(java.lang.Throwable e)
Construct an instance with a linked exception specified. |
|
MetaMatrixRuntimeException(java.lang.Throwable e,
int code,
java.lang.String message)
Construct an instance with the linked exception, error code, and error message specified. |
|
MetaMatrixRuntimeException(java.lang.Throwable e,
java.lang.String message)
Construct an instance with the linked exception and error message specified. |
|
MetaMatrixRuntimeException(java.lang.Throwable e,
java.lang.String code,
java.lang.String message)
Construct an instance with the linked exception, error code, and error message specified. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
|
java.lang.Throwable |
getChild()
Get the exception which is linked to this exception. |
static java.lang.String |
getClassShortName(java.lang.Class cls)
Utility method to get the name of a class, without package information. |
java.lang.String |
getCode()
Get the error code. |
int |
getIntCode()
|
java.lang.Throwable |
initCause(java.lang.Throwable cause)
|
void |
setCode(int code)
Set the error code. |
void |
setCode(java.lang.String code)
|
void |
superPrintStackTrace(java.io.PrintStream output)
|
void |
superPrintStackTrace(java.io.PrintWriter output)
|
java.lang.String |
toString()
Returns a string representation of this class. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, 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 java.lang.String CAUSED_BY_STRING
Constructor Detail |
---|
public MetaMatrixRuntimeException()
public MetaMatrixRuntimeException(java.lang.String message)
message
- The error message or a resource bundle keypublic MetaMatrixRuntimeException(int code, java.lang.String message)
code
- The error codemessage
- The error message or a resource bundle keypublic MetaMatrixRuntimeException(java.lang.String code, java.lang.String message)
public MetaMatrixRuntimeException(java.lang.Throwable e)
MetaMatrixCoreException
or a
MetaMatrixRuntimeException, then the code will be set to the exception's code.
e
- An exception to chain to this exceptionpublic MetaMatrixRuntimeException(java.lang.Throwable e, java.lang.String message)
MetaMatrixCoreException
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 MetaMatrixRuntimeException(java.lang.Throwable e, int code, java.lang.String message)
e
- The exception to chain to this exceptioncode
- The error codemessage
- The error message or a resource bundle keypublic MetaMatrixRuntimeException(java.lang.Throwable e, java.lang.String code, java.lang.String message)
MetaMatrixException
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 static java.lang.String getClassShortName(java.lang.Class cls)
cls
- The class to get the name of
public java.lang.Throwable getChild()
public java.lang.String getCode()
public int getIntCode()
public void setCode(int code)
code
- The error codepublic void setCode(java.lang.String code)
public java.lang.String toString()
toString
in class java.lang.Throwable
public void superPrintStackTrace(java.io.PrintStream output)
public void superPrintStackTrace(java.io.PrintWriter output)
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.lang.Throwable initCause(java.lang.Throwable cause)
initCause
in class java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |