|
||||||||||
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 org.formulacompiler.runtime.FormulaCompilerException
public class FormulaCompilerException
Base class for all exceptions thrown by AFC. Augments the basic Exception
class with
support for message context information. The idea is that handlers further up the chain can add
context information to the existing exception, then rethrow it. This makes the exception mutable,
but avoids having to wrap it repeatedly for no other reason that to provide a bit of source
location context.
Constructor Summary | |
---|---|
FormulaCompilerException()
|
|
FormulaCompilerException(java.lang.String _message)
|
|
FormulaCompilerException(java.lang.String _message,
java.lang.Throwable _cause)
|
|
FormulaCompilerException(java.lang.Throwable _cause)
|
Method Summary | |
---|---|
void |
addMessageContext(java.lang.String _messageContext)
Appends to the current message context. |
java.lang.String |
getMessage()
Override that appends the current message context to the message. |
java.lang.String |
getMessageContext()
Returns the current message context. |
java.lang.String |
getPureMessage()
Returns the pure, unchanged message. |
void |
setMessageContext(java.lang.String _messageContext)
Sets the current message context. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormulaCompilerException()
public FormulaCompilerException(java.lang.String _message, java.lang.Throwable _cause)
public FormulaCompilerException(java.lang.String _message)
public FormulaCompilerException(java.lang.Throwable _cause)
Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
getPureMessage()
,
getMessageContext()
public java.lang.String getPureMessage()
getMessage()
public java.lang.String getMessageContext()
getMessage()
.
public void setMessageContext(java.lang.String _messageContext)
_messageContext
- is the new message context.addMessageContext(String)
public void addMessageContext(java.lang.String _messageContext)
_messageContext
- is the context to append.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |