|
|||||||||
| 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(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 |
| Method Summary | |
|---|---|
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 |
| 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
Object... messageArguments)
T - the details typedetails - the details (an enum that implements ApplicationException.DetailsmessageArguments - the (optional) message arguments
protected ApplicationException(@Nullable
Throwable cause,
@Nonnull
T details,
@Nonnull
Object... messageArguments)
T - the details typecause - the causedetails - the detailsmessageArguments - the (optional) message arguments| Method Detail |
|---|
@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()
@Nonnull
public String getTitle(@Nonnull
Locale locale)
locale - the locale
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||