public abstract class ApplicationException extends RuntimeException
| Constructor and Description |
|---|
ApplicationException(ErrorCase error,
String message)
Constructs the Exception
|
ApplicationException(ErrorCase error,
String message,
Throwable e)
Constructs the Exception
|
ApplicationException(String message)
Constructs the Exception
|
ApplicationException(String message,
Throwable e)
Constructs the Exception
|
ApplicationException(Throwable e)
Constructs the Exception
|
| Modifier and Type | Method and Description |
|---|---|
ErrorCase |
getError()
Gets the
ErrorCase for this exception |
List |
getInner()
Gets the stack trace for the root exception or an empty list if no root cause exception was supplied in the
constructor
|
String |
getLocalizedMessage() |
boolean |
isLogged()
Returns if this exception was already logged
|
void |
setLogged(boolean logged)
Set if this exception was already logged,
If set to true, the logging framework will not log this exception anymore
|
void |
setResourceBundle(ResourceBundle resourceBundle)
Sets the Resource Bundle for localizing the error message.
|
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ApplicationException(String message)
message - - the error message for this exceptionpublic ApplicationException(ErrorCase error, String message)
message - - the error message for this exceptionerror - - the ErrorCase for this messagepublic ApplicationException(Throwable e)
e - - the root cause for this exceptionpublic ApplicationException(String message, Throwable e)
message - - the error message for this exceptione - - the root cause for this exceptionpublic ErrorCase getError()
ErrorCase for this exceptionErrorCase set for this exceptionpublic List getInner()
public boolean isLogged()
public void setLogged(boolean logged)
logged - - if this exception was already loggedpublic void setResourceBundle(ResourceBundle resourceBundle)
ErrorCase set for this exceptionresourceBundle - public String getLocalizedMessage()
getLocalizedMessage in class ThrowableCopyright © 2016 Eclipse Stardust. All Rights Reserved.