|
mxGraph 1.10.0.6 |
|||||||||
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.mxgraph.util.svg.ParseException
public class ParseException
This class encapsulates a general parse error or warning.
This class can contain basic error or warning information from either the parser or the application.
If the application needs to pass through other types of exceptions, it must wrap those exceptions in a ParseException.
Field Summary | |
---|---|
protected int |
columnNumber
|
protected Exception |
exception
|
protected int |
lineNumber
|
Constructor Summary | |
---|---|
ParseException(Exception e)
Creates a new ParseException wrapping an existing exception. |
|
ParseException(String message,
Exception e)
Creates a new ParseException from an existing exception. |
|
ParseException(String message,
int line,
int column)
Creates a new ParseException. |
Method Summary | |
---|---|
int |
getColumnNumber()
Returns the column of the last parsed character. |
Exception |
getException()
Return the embedded exception, if any. |
int |
getLineNumber()
Returns the line of the last parsed character. |
String |
getMessage()
Return a detail message for this exception. |
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 Exception exception
protected int lineNumber
protected int columnNumber
Constructor Detail |
---|
public ParseException(String message, int line, int column)
message
- The error or warning message.line
- The line of the last parsed character.column
- The column of the last parsed character.public ParseException(Exception e)
The existing exception will be embedded in the new one, and its message will become the default message for the ParseException.
e
- The exception to be wrapped in a ParseException.public ParseException(String message, Exception e)
The existing exception will be embedded in the new one, but the new exception will have its own message.
message
- The detail message.e
- The exception to be wrapped in a SAXException.Method Detail |
---|
public String getMessage()
If there is a embedded exception, and if the ParseException has no detail message of its own, this method will return the detail message from the embedded exception.
getMessage
in class Throwable
public Exception getException()
public int getLineNumber()
public int getColumnNumber()
|
mxGraph 1.10.0.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |