public class ErrorMessage extends RuntimeException
| Constructor and Description |
|---|
ErrorMessage(String message)
Creates a new
ErrorMessage instance. |
ErrorMessage(String message,
Throwable cause)
Creates a new
ErrorMessage instance. |
ErrorMessage(Throwable cause)
Creates a new
ErrorMessage instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Returns the message to the user.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ErrorMessage(String message)
ErrorMessage instance.message - The message to the userpublic ErrorMessage(Throwable cause)
ErrorMessage instance.cause - The throwable that caused this messagepublic String getMessage()
getMessage in class ThrowableCopyright © 2013. All Rights Reserved.