|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.cedarsoft.exceptions.ApplicationException
public abstract class ApplicationException
| Nested Class Summary | |
|---|---|
static interface |
ApplicationException.Details
|
| Constructor Summary | |
|---|---|
protected |
ApplicationException(java.lang.Throwable cause,
T details,
java.lang.Object... messageArguments)
Creates a new ApplicationException including a cause (which is never presented to the user). |
protected |
ApplicationException(T details,
java.lang.Object... messageArguments)
Creates a new ApplicationException |
| Method Summary | |
|---|---|
ApplicationException.Details |
getDetails()
Returns the details |
ErrorCode |
getErrorCode()
Returns the error code |
java.lang.String |
getLocalizedMessage()
Returns the localized message for the default locale |
java.lang.String |
getLocalizedMessage(java.util.Locale locale)
Returns the localized message for the given locale |
java.lang.String |
getMessage()
|
java.lang.Object[] |
getMessageArguments()
Returns the message arguments. |
java.lang.String |
getTitle()
Returns the title for the default locale |
java.lang.String |
getTitle(java.util.Locale locale)
Returns the title for the given locale |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ApplicationException(@Nonnull
T details,
@Nonnull
java.lang.Object... messageArguments)
T - the details typedetails - the details (an enum that implements ApplicationException.DetailsmessageArguments - the (optional) message arguments
protected ApplicationException(@Nullable
java.lang.Throwable cause,
@Nonnull
T details,
@Nonnull
java.lang.Object... messageArguments)
T - the details typecause - the causedetails - the detailsmessageArguments - the (optional) message arguments| Method Detail |
|---|
@Nonnull public ApplicationException.Details getDetails()
@Nonnull public java.lang.Object[] getMessageArguments()
public java.lang.String getMessage()
getMessage in class java.lang.Throwable@Nonnull public ErrorCode getErrorCode()
@Nonnull public java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.Throwable
@Nonnull
public java.lang.String getLocalizedMessage(@Nonnull
java.util.Locale locale)
locale - the locale
@Nonnull public java.lang.String getTitle()
@Nonnull
public java.lang.String getTitle(@Nonnull
java.util.Locale locale)
locale - the locale
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||