public class EmailException extends Exception
Adapted from FunctorException in Commons Collections.
Emulation support for nested exceptions has been removed in Email 1.3
,
supported by JDK ≥ 1.4.
Constructor and Description |
---|
EmailException()
Constructs a new
EmailException with no
detail message. |
EmailException(String msg)
Constructs a new
EmailException with specified
detail message. |
EmailException(String msg,
Throwable rootCause)
Constructs a new
EmailException with specified
detail message and nested Throwable root cause. |
EmailException(Throwable rootCause)
Constructs a new
EmailException with specified
nested Throwable root cause. |
Modifier and Type | Method and Description |
---|---|
void |
printStackTrace()
Prints the stack trace of this exception to the standard error stream.
|
void |
printStackTrace(PrintStream out)
Prints the stack trace of this exception to the specified stream.
|
void |
printStackTrace(PrintWriter out)
Prints the stack trace of this exception to the specified writer.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
public EmailException()
EmailException
with no
detail message.public EmailException(String msg)
EmailException
with specified
detail message.msg
- the error message.public EmailException(Throwable rootCause)
EmailException
with specified
nested Throwable
root cause.rootCause
- the exception or error that caused this exception
to be thrown.public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream out)
printStackTrace
in class Throwable
out
- the PrintStream
to use for outputpublic void printStackTrace(PrintWriter out)
printStackTrace
in class Throwable
out
- the PrintWriter
to use for outputCopyright © 2001–2017 The Apache Software Foundation. All rights reserved.