|
|||||||||||
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 | +--edu.ucsb.nceas.metacat.McdbException
Exception thrown when an error occurs because a problem occurred in the metacat database. This is the general type of Exception that is thrown whenever the server encounters an Error or Exception that is outside of the scope of normal operation. This class may be subclassed to provide more detailed informatin about the error.
Constructor Summary | |
McdbException()
Create a new McdbException. |
|
McdbException(java.lang.Exception e)
Create a new McdbException. |
|
McdbException(java.lang.String message)
Create a new McdbException. |
|
McdbException(java.lang.String message,
java.lang.Exception e)
Create a new McdbException. |
Method Summary | |
java.lang.Exception |
getException()
Get the tunneled Exception |
java.lang.String |
getMessage()
Get the message from this exception. |
void |
toXml(java.io.PrintWriter pw)
Print the message from this exception in XML format. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public McdbException()
public McdbException(java.lang.String message)
message
- The error or warning message.public McdbException(java.lang.Exception e)
e
- The exception to tunnel inside this exceptionpublic McdbException(java.lang.String message, java.lang.Exception e)
message
- The error or warning message.e
- The exception to tunnel inside this exceptionMethod Detail |
public java.lang.Exception getException()
public java.lang.String getMessage()
This returns the message from this exception, but if it is null, and if the tunnelled exception is not null, then it returns the message fromthe tunnelled exception.
getMessage
in class java.lang.Throwable
public void toXml(java.io.PrintWriter pw)
This returns the message from this exception, but if it is null, and if the tunnelled exception is not null, then it returns the message from the tunnelled exception.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |