|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.tentackle.util.ApplicationException
public class ApplicationException
Application Exception.
Same as Exception but will be shown to the user in FormError
and can be used as a tagged exception for all internal application
errors.
| Field Summary | |
|---|---|
static int |
ERROR_DEFAULT
the default error code |
| Constructor Summary | |
|---|---|
ApplicationException(String message)
Creates an ApplicationException. |
|
ApplicationException(String message,
int errorCode)
Creates an ApplicationException. |
|
ApplicationException(String message,
int errorCode,
Throwable cause)
Creates an ApplicationException. |
|
ApplicationException(String message,
Throwable cause)
Creates an ApplicationException. |
|
| Method Summary | |
|---|---|
String |
getAllMessages()
Gets the chain of all messages (if exception is cascaded). Any Exception other than ApplicationException will be stacktraced. |
int |
getErrorCode()
Gets the errorcode. |
String |
getStackTraceAsString()
Returns the stacktrace of this exception as a string. |
static String |
getStackTraceAsString(Throwable cause)
Returns the stacktrace of a given exception as a string. |
void |
setErrorCode(int errorCode)
Sets the errorcode. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ERROR_DEFAULT
| Constructor Detail |
|---|
public ApplicationException(String message,
int errorCode,
Throwable cause)
message - the message, null if noneerrorCode - the errorcodecause - the chained cause, null if none
public ApplicationException(String message,
int errorCode)
message - the message, null if noneerrorCode - the errorcodepublic ApplicationException(String message)
message - the message, null if none
public ApplicationException(String message,
Throwable cause)
message - the message, null if nonecause - the chained cause, null if none| Method Detail |
|---|
public static String getStackTraceAsString(Throwable cause)
cause - the exception
public int getErrorCode()
public void setErrorCode(int errorCode)
errorCode - the errorcodepublic String getStackTraceAsString()
public String getAllMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||