|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.metamatrix.core.MetaMatrixCoreException com.metamatrix.api.exception.MetaMatrixException
public class MetaMatrixException
A generic exception which contains a reference to another exception. 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.
This class assumes all messages internationalization has been resolved before the constructor is called. There will be no automatic lookup performed by this class.
Constructor Summary | |
---|---|
MetaMatrixException()
No-arg Constructor |
|
MetaMatrixException(java.lang.String message)
Construct an instance with the specified error message. |
|
MetaMatrixException(java.lang.String code,
java.lang.String message)
Construct an instance with the specified error code and message. |
|
MetaMatrixException(java.lang.Throwable e)
Construct an instance with a linked exception specified. |
|
MetaMatrixException(java.lang.Throwable e,
java.lang.String message)
Construct an instance with the linked exception and error message specified. |
|
MetaMatrixException(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 |
getChild()
Get the exception which is linked to this exception. |
java.lang.String |
getCode()
Get the error code. |
java.lang.String |
getFullMessage()
Get the full error message, including any message(s) from child exceptions. |
java.lang.String |
getMessage()
|
void |
readExternal(java.io.ObjectInput in)
|
void |
setCode(java.lang.String code)
Set the error code. |
java.lang.String |
toString()
Returns a string representation of this class. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class com.metamatrix.core.MetaMatrixCoreException |
---|
getCause, initCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MetaMatrixException()
public MetaMatrixException(java.lang.String message)
message
- The error messagepublic MetaMatrixException(java.lang.String code, java.lang.String message)
code
- The error codemessage
- The error messagepublic MetaMatrixException(java.lang.Throwable e)
MetaMatrixRuntimeException
, then the code will be set to the exception's code.
e
- An exception to chain to this exceptionpublic MetaMatrixException(java.lang.Throwable e, java.lang.String message)
MetaMatrixRuntimeException
, then the code will be set to the exception's
code.
e
- The exception to chain to this exceptionmessage
- The error messagepublic MetaMatrixException(java.lang.Throwable e, java.lang.String code, java.lang.String message)
MetaMatrixRuntimeException
, then 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 java.lang.Throwable getChild()
public java.lang.String getCode()
public java.lang.String getFullMessage()
getFormattedMessage(java.lang.Throwable, int)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void setCode(java.lang.String code)
code
- The error codepublic java.lang.String toString()
toString
in class java.lang.Throwable
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
Externalizable.writeExternal(java.io.ObjectOutput)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |