JavaCAD
|
Public Member Functions | |
ParseException (String message, int line, int column) | |
ParseException (Exception e) | |
ParseException (String message, Exception e) | |
String | getMessage () |
Exception | getException () |
int | getLineNumber () |
int | getColumnNumber () |
Protected Attributes | |
Exception | exception |
int | lineNumber |
int | columnNumber |
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.
Definition at line 33 of file ParseException.java.
com.piro.bezier.ParseException.ParseException | ( | String | message, |
int | line, | ||
int | column | ||
) |
Creates a new ParseException.
message | The error or warning message. |
line | The line of the last parsed character. |
column | The column of the last parsed character. |
Definition at line 56 of file ParseException.java.
References com.piro.bezier.ParseException.columnNumber, com.piro.bezier.ParseException.exception, and com.piro.bezier.ParseException.lineNumber.
com.piro.bezier.ParseException.ParseException | ( | Exception | e | ) |
Creates a new ParseException wrapping an existing exception.
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. |
Definition at line 71 of file ParseException.java.
References com.piro.bezier.ParseException.columnNumber, com.piro.bezier.ParseException.exception, and com.piro.bezier.ParseException.lineNumber.
com.piro.bezier.ParseException.ParseException | ( | String | message, |
Exception | e | ||
) |
Creates a new ParseException from an existing exception.
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. |
Definition at line 85 of file ParseException.java.
int com.piro.bezier.ParseException.getColumnNumber | ( | ) |
Returns the column of the last parsed character.
Definition at line 126 of file ParseException.java.
References com.piro.bezier.ParseException.columnNumber.
Exception com.piro.bezier.ParseException.getException | ( | ) |
Return the embedded exception, if any.
Definition at line 112 of file ParseException.java.
References com.piro.bezier.ParseException.exception.
int com.piro.bezier.ParseException.getLineNumber | ( | ) |
Returns the line of the last parsed character.
Definition at line 119 of file ParseException.java.
References com.piro.bezier.ParseException.lineNumber.
String com.piro.bezier.ParseException.getMessage | ( | ) |
Return a detail message for this exception.
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.
Definition at line 98 of file ParseException.java.
References com.piro.bezier.ParseException.exception.
|
protected |
@serial The column number.
Definition at line 48 of file ParseException.java.
Referenced by com.piro.bezier.ParseException.getColumnNumber(), and com.piro.bezier.ParseException.ParseException().
|
protected |
@serial The embedded exception if tunnelling, or null.
Definition at line 38 of file ParseException.java.
Referenced by com.piro.bezier.ParseException.getException(), com.piro.bezier.ParseException.getMessage(), and com.piro.bezier.ParseException.ParseException().
|
protected |
@serial The line number.
Definition at line 43 of file ParseException.java.
Referenced by com.piro.bezier.ParseException.getLineNumber(), and com.piro.bezier.ParseException.ParseException().