|
|||||||||||
| 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
fr.ove.openmath.exceptions.ErrorMessageException
An exception to subclass to alerts application of errors or to specialize
the treatment of the symbol that causes the thrown of that kind of instance.
This class must be subclassed (it is an abstract class) to set the adequat error
message and the possible details according to the symbol.
| Constructor Summary | |
ErrorMessageException(java.lang.String symbol)
The constructor. |
|
ErrorMessageException(java.lang.String symbol,
java.lang.Object details)
The constructor. |
|
| Method Summary | |
java.lang.Object |
getDetails()
Returns the details of the exception |
java.lang.String |
getErrorMessage()
Returns the error message |
java.lang.String |
getSymbol()
Returns the symbols which throws the instance |
boolean |
getThrowAgain()
Returns if we've got to throw the exception. |
void |
setDetails(java.lang.Object details)
Sets the details of the exception |
void |
setErrorMessage(java.lang.String errorMessage)
Sets the error message |
void |
setSymbol(java.lang.String symbol)
Sets the symbol which throws the instance |
void |
setThrowAgain(boolean throwAgain)
Sets true if we've got to throw the exception. |
| 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 ErrorMessageException(java.lang.String symbol)
symbol - The symbol which throws the instance.
public ErrorMessageException(java.lang.String symbol,
java.lang.Object details)
symbol - The symbol which throws the instance.details - the details of the exception| Method Detail |
public java.lang.String getSymbol()
public void setSymbol(java.lang.String symbol)
public java.lang.Object getDetails()
public void setDetails(java.lang.Object details)
public void setThrowAgain(boolean throwAgain)
true if we've got to throw the exception.false otherwise.
public boolean getThrowAgain()
public void setErrorMessage(java.lang.String errorMessage)
public java.lang.String getErrorMessage()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||