public class TextMessageException extends Exception
Text rather than a String. This allows formatted and localized
exception messages.| Constructor and Description |
|---|
TextMessageException()
Constructs a new
TextMessageException. |
TextMessageException(Text message)
Constructs a new
TextMessageException with the given message. |
TextMessageException(Text message,
Throwable throwable)
Constructs a new
TextMessageException with the given message and
cause. |
TextMessageException(Throwable throwable)
Constructs a new
TextMessageException with the given cause. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage() |
String |
getMessage() |
Text |
getText()
Returns the text message for this exception, or null if nothing is
present.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TextMessageException()
TextMessageException.public TextMessageException(Text message)
TextMessageException with the given message.message - The detail messagepublic TextMessageException(Text message, Throwable throwable)
TextMessageException with the given message and
cause.message - The detail messagethrowable - The causepublic TextMessageException(Throwable throwable)
TextMessageException with the given cause.throwable - The cause@Nullable public String getMessage()
getMessage in class Throwable@Nullable public Text getText()
@Nullable public String getLocalizedMessage()
getLocalizedMessage in class Throwable