public class CastorException extends Exception
| Constructor and Description |
|---|
CastorException()
Creates a new CastorException with no message, or nested Exception
|
CastorException(String message)
Creates a new CastorException with the given message.
|
CastorException(String message,
Throwable cause)
Creates a new CastorException with the given message and cause.
|
CastorException(Throwable cause)
Creates a new CastorException with the given cause.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
Match the JDK 1.4 Throwable version of getCause() on JDK<1.4 systems.
|
String |
getMessage()
Return the detailed message from this Exception.
|
Throwable |
initCause(Throwable cause)
Match the JDK 1.4 Throwable version of initCause() on JDK<1.4 systems.
|
void |
printStackTrace()
Print a stack trace to stderr.
|
void |
printStackTrace(PrintStream s)
Print a stack trace to the specified PrintStream.
|
void |
printStackTrace(PrintWriter w)
Print a stack trace to the specified PrintWriter.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, setStackTrace, toStringpublic CastorException()
public CastorException(String message)
message - the message for this Exceptionpublic CastorException(String message, Throwable cause)
message - The message for this exception.cause - A Throwable instance.public CastorException(Throwable cause)
cause - A Throwable instance.public Throwable initCause(Throwable cause)
public Throwable getCause()
public String getMessage()
getMessage in class Throwablepublic void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - The PrintStream to print a stack trace to.public void printStackTrace(PrintWriter w)
printStackTrace in class Throwablew - The PrintWriter to print a stack trace to.Copyright © 2012. All Rights Reserved.