public class McdbException
extends java.lang.Exception
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Get the tunneled Exception
|
java.lang.String |
getMessage()
Get the message from this exception.
|
void |
toXml(java.io.Writer pw)
Print the message from this exception in XML format.
|
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 exceptionpublic 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.Writer 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.
Copyright © 2020 Regents of the University of California. All Rights Reserved.