|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
tcra.math.MathFormatException
public class MathFormatException
MathFormatException is thrown by MathTypeParsers when it discovers it is parsing a malformed String format. It wraps any other Exception that may be thrown during parsing as well.
Based on SAXException at: http://www.openhealth.org/RDDL/org/xml/sax/SAXException.java
| Constructor Summary | |
|---|---|
MathFormatException()
Default constructor. |
|
MathFormatException(java.lang.Exception e)
Constructor specifying the exception to be wrapped. |
|
MathFormatException(java.lang.String message)
Constructor specifying message to be printed. |
|
MathFormatException(java.lang.String message,
java.lang.Exception e)
Constructor specifying a custom error message and a wrapped exception. |
|
| Method Summary | |
|---|---|
java.lang.Exception |
getException()
Return the wrapped exception. |
java.lang.String |
getMessage()
Return the exception message. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MathFormatException()
public MathFormatException(java.lang.String message)
message - Custom error message that will be printed to
user.public MathFormatException(java.lang.Exception e)
e - Exception that occured during parsing from some
other function.
public MathFormatException(java.lang.String message,
java.lang.Exception e)
message - Custom error message that will be printed to
the user.e - Wrapped exception.| Method Detail |
|---|
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.Exception getException()
public java.lang.String toString()
toString in class java.lang.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||