BowlerKernel
Public Member Functions | Protected Attributes | List of all members
com.piro.bezier.ParseException Class Reference
Inheritance diagram for com.piro.bezier.ParseException:
Inheritance graph
[legend]
Collaboration diagram for com.piro.bezier.ParseException:
Collaboration graph
[legend]

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
 

Detailed Description

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.

Author
Stephane Hillion
Version
Id
ParseException.java 475685 2006-11-16 11:16:05Z cam

Definition at line 33 of file ParseException.java.

Constructor & Destructor Documentation

◆ ParseException() [1/3]

com.piro.bezier.ParseException.ParseException ( String  message,
int  line,
int  column 
)

Creates a new ParseException.

Parameters
messageThe error or warning message.
lineThe line of the last parsed character.
columnThe 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.

◆ ParseException() [2/3]

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.

Parameters
eThe 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.

◆ ParseException() [3/3]

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.

Parameters
messageThe detail message.
eThe exception to be wrapped in a SAXException.

Definition at line 85 of file ParseException.java.

Member Function Documentation

◆ getColumnNumber()

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.

◆ getException()

Exception com.piro.bezier.ParseException.getException ( )

Return the embedded exception, if any.

Returns
The embedded exception, or null if there is none.

Definition at line 112 of file ParseException.java.

References com.piro.bezier.ParseException.exception.

◆ getLineNumber()

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.

◆ getMessage()

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.

Returns
The error or warning message.

Definition at line 98 of file ParseException.java.

References com.piro.bezier.ParseException.exception.

Member Data Documentation

◆ columnNumber

int com.piro.bezier.ParseException.columnNumber
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().

◆ exception

Exception com.piro.bezier.ParseException.exception
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().

◆ lineNumber

int com.piro.bezier.ParseException.lineNumber
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().


The documentation for this class was generated from the following file: