@Api public class SystemException extends RuntimeException
Constructor and Description |
---|
SystemException(String message) |
SystemException(String message,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String key) |
String |
getLocalizedMessage()
Returns translated message for end user.
|
String |
getMessage()
Returns message of exception.
|
SystemException |
localizedMessage(String key,
Object... args)
Sets variables to generate localized message when calling {
getLocalizedMessage() |
SystemException |
set(String key,
Object value)
Sets a key and value property.
|
String |
toString() |
static SystemException |
wrap(Throwable exception) |
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public SystemException(String message)
public SystemException set(String key, Object value)
getMessage()
.key
- Key of propertyvalue
- Value of propertypublic <T> T get(String key)
public SystemException localizedMessage(String key, Object... args)
getLocalizedMessage()
key
- Key for translated messageargs
- Arguments for messagepublic String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
localizedMessage(String, Object...)
.getLocalizedMessage
in class Throwable
public static SystemException wrap(Throwable exception)
Copyright © 2017 Suncode. All rights reserved.