public abstract class ApplicationException extends RuntimeException
| Modifier and Type | Class and Description |
|---|---|
static interface |
ApplicationException.Details |
| Modifier | Constructor and Description |
|---|---|
protected |
ApplicationException(Throwable cause,
T details,
Object... messageArguments)
Creates a new ApplicationException including a cause (which is never presented to the user).
|
protected |
ApplicationException(T details,
Object... messageArguments)
Creates a new ApplicationException
|
| Modifier and Type | Method and Description |
|---|---|
ApplicationException.Details |
getDetails()
Returns the details
|
ErrorCode |
getErrorCode()
Returns the error code
|
String |
getLocalizedMessage()
Returns the localized message for the default locale
|
String |
getLocalizedMessage(Locale locale)
Returns the localized message for the given locale
|
String |
getMessage() |
Object[] |
getMessageArguments()
Returns the message arguments.
|
String |
getTitle()
Returns the title for the default locale
|
String |
getTitle(Locale locale)
Returns the title for the given locale
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected ApplicationException(@Nonnull T details, @Nonnull Object... messageArguments)
T - the details typedetails - the details (an enum that implements DetailsmessageArguments - the (optional) message argumentsprotected ApplicationException(@Nullable Throwable cause, @Nonnull T details, @Nonnull Object... messageArguments)
T - the details typecause - the causedetails - the detailsmessageArguments - the (optional) message arguments@Nonnull public ApplicationException.Details getDetails()
@Nonnull public Object[] getMessageArguments()
public String getMessage()
getMessage in class Throwable@Nonnull public ErrorCode getErrorCode()
@Nonnull public String getLocalizedMessage()
getLocalizedMessage in class Throwable@Nonnull public String getLocalizedMessage(@Nonnull Locale locale)
locale - the locale@Nonnull public String getTitle()
Copyright © 2007–2015 cedarsoft GmbH. All rights reserved.