public class HandledException extends RuntimeException
Instances of this type need no further treatment and guarantee to have a properly translated error message, which van be directly shown to the user.
Creating a HandledException is done by using one of the static methods of Exceptions
.
Modifier | Constructor and Description |
---|---|
protected |
HandledException(String message)
Creates a new instance with the given message and no exception attached
|
protected |
HandledException(String message,
Throwable e)
Created a new instance with the given message and exception attached
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected HandledException(String message)
message
- the message to be shown to the userCopyright © 2018. All rights reserved.