|
||||||||||
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 | +--dtw.webmail.model.JwmaException
Class implementing the JwmaError model. It can contain an embedded exception and allows access to it and it's corresponding stack trace.
Constructor Summary | |
JwmaException(java.lang.String msg)
Constructs a new JwmaException instance with a given description. |
|
JwmaException(java.lang.String msg,
boolean inlined)
Constructs a new JwmaException instance. |
Method Summary | |
void |
addDescription(java.lang.String description)
|
java.lang.String[] |
getDescriptions()
Returns an String[] containing the keys to the locale specific error descriptions. |
java.lang.Exception |
getException()
Returns the embedded exception. |
java.lang.String |
getExceptionTrace()
Returns a String representing the Errors embedded exception stack trace. |
boolean |
hasException()
Tests if the error has an embedded exception. |
boolean |
isDisplayed()
Tests if the error has been displayed. |
boolean |
isInlineError()
Tests if the error is an inline error. |
java.util.Iterator |
iterator()
|
void |
setDisplayed(boolean b)
Sets the flag that controls if this error was already displayed. |
JwmaException |
setException(java.lang.Exception ex)
Sets an embedded exception. |
JwmaException |
setInlineError(boolean b)
Sets the flag that controls if the Exception represents an inline error. |
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 |
Constructor Detail |
public JwmaException(java.lang.String msg)
msg
- the description of the Exception as String.public JwmaException(java.lang.String msg, boolean inlined)
msg
- the description of the Exception as String.inlined
- true when inline error, false otherwise.Method Detail |
public JwmaException setInlineError(boolean b)
An inline error should be displayed within the same view and not on the error view.
public boolean isInlineError()
JwmaError
An inline error should be displayed within the same view and not on the error view.
isInlineError
in interface JwmaError
public void addDescription(java.lang.String description)
public java.lang.String[] getDescriptions()
JwmaError
getDescriptions
in interface JwmaError
public java.util.Iterator iterator()
public void setDisplayed(boolean b)
setDisplayed
in interface JwmaError
b
- true if it was displayed, false otherwise.public boolean isDisplayed()
JwmaError
isDisplayed
in interface JwmaError
public JwmaException setException(java.lang.Exception ex)
ex
- the exception to be embedded.
public boolean hasException()
JwmaError
hasException
in interface JwmaError
public java.lang.String getExceptionTrace()
JwmaError
getExceptionTrace
in interface JwmaError
public java.lang.Exception getException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |