public class MessagingException extends Exception
| Constructor and Description |
|---|
MessagingException()
Constructs a MessagingException with no detail message.
|
MessagingException(String s)
Constructs a MessagingException with the specified detail message.
|
MessagingException(String s,
Exception e)
Constructs a MessagingException with the specified
Exception and detail message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Produce the message, include the message from the nested
exception if there is one.
|
Exception |
getNextException()
Get the next exception chained to this one.
|
boolean |
setNextException(Exception ex)
Add an exception to the end of the chain.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MessagingException()
public MessagingException(String s)
s - the detail messagepublic MessagingException(String s, Exception e)
s - the detail messagee - the embedded exceptiongetNextException(),
setNextException(java.lang.Exception)public Exception getNextException()
public boolean setNextException(Exception ex)
ex - the new end of the Exception chaintrue if the this Exception
was added, false otherwise.public String getMessage()
getMessage in class ThrowableCopyright © 2005–2017 Oracle Corporation. All rights reserved.