|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.groiss.util.ApplicationException
public class ApplicationException
Class for Exceptions thrown in the application.
Field Summary | |
---|---|
protected boolean |
allowHTMLMessage
|
protected java.lang.Object[] |
arguments
|
protected ErrorFormatter |
ef
|
protected int |
exceptionNumber
|
protected boolean |
isWarning
|
Constructor Summary | |
---|---|
ApplicationException(int errnum)
Construct an ApplicationException with an exception number |
|
ApplicationException(int errnum,
java.lang.Object[] args)
|
|
ApplicationException(int errnum,
java.lang.Object[] args,
java.lang.Throwable cause)
Construct an ApplicationException with an exception number, parameters for that exception and the causing Throwable |
|
ApplicationException(int errnum,
java.lang.String msg,
java.lang.Throwable cause)
|
|
ApplicationException(int errnum,
java.lang.Throwable cause)
|
|
ApplicationException(Resource resource,
int errnum)
|
|
ApplicationException(Resource resource,
int errnum,
java.lang.Object[] args)
|
|
ApplicationException(Resource resource,
int errnum,
java.lang.Object[] args,
java.lang.Throwable cause)
|
|
ApplicationException(Resource resource,
int errnum,
java.lang.String msg,
java.lang.Throwable cause)
|
|
ApplicationException(Resource resource,
int errnum,
java.lang.Throwable cause)
|
|
ApplicationException(java.lang.String message)
Construct an ApplicationException with a message. |
|
ApplicationException(java.lang.String message,
java.lang.Throwable cause)
Construct an ApplicationException with a message and a Throwable. |
|
ApplicationException(java.lang.Throwable cause)
Construct an ApplicationException with a Throwable |
Method Summary | |
---|---|
boolean |
allowHTMLMessage()
|
java.lang.Object[] |
getArgs()
|
int |
getErrnum()
|
ErrorFormatter |
getErrorFormatter()
Returns the error formatter for this exception. |
java.lang.Throwable |
getException()
Returns an inner excpetion, null if there is none. |
java.lang.String |
getMessage()
|
java.lang.String |
getOptMessage()
|
boolean |
isWarning()
|
protected void |
log()
|
void |
setAllowHTMLMessage(boolean allowHTMLMessage)
set to true to allow html-formatted error-messages, false by default |
void |
setErrorFormatter(ErrorFormatter ef)
Set the formatter for formatting the error page. |
void |
setWarning(boolean warning)
Set the exception type to warning. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, 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 |
---|
protected ErrorFormatter ef
protected int exceptionNumber
protected java.lang.Object[] arguments
protected boolean isWarning
protected boolean allowHTMLMessage
Constructor Detail |
---|
public ApplicationException(int errnum)
public ApplicationException(Resource resource, int errnum)
public ApplicationException(int errnum, java.lang.Object[] args)
public ApplicationException(Resource resource, int errnum, java.lang.Object[] args)
public ApplicationException(int errnum, java.lang.Object[] args, java.lang.Throwable cause)
public ApplicationException(Resource resource, int errnum, java.lang.Object[] args, java.lang.Throwable cause)
public ApplicationException(int errnum, java.lang.String msg, java.lang.Throwable cause)
public ApplicationException(Resource resource, int errnum, java.lang.String msg, java.lang.Throwable cause)
public ApplicationException(int errnum, java.lang.Throwable cause)
public ApplicationException(Resource resource, int errnum, java.lang.Throwable cause)
public ApplicationException(java.lang.String message)
public ApplicationException(java.lang.String message, java.lang.Throwable cause)
public ApplicationException(java.lang.Throwable cause)
Method Detail |
---|
public java.lang.Object[] getArgs()
public int getErrnum()
getErrnum
in interface TopLevelException
public ErrorFormatter getErrorFormatter()
public java.lang.Throwable getException()
TopLevelException
getException
in interface TopLevelException
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getOptMessage()
public boolean isWarning()
isWarning
in interface TopLevelException
protected void log()
public void setErrorFormatter(ErrorFormatter ef)
ef
- public void setWarning(boolean warning)
setWarning
in interface TopLevelException
public boolean allowHTMLMessage()
public void setAllowHTMLMessage(boolean allowHTMLMessage)
true
to allow html-formatted error-messages, false
by default
allowHTMLMessage
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |