All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xm.xm_ParseException

java.lang.Object
   |
   +----java.lang.Throwable
           |
           +----java.lang.Exception
                   |
                   +----java.io.IOException
                           |
                           +----xm.xm_ParseException

public class xm_ParseException
extends IOException
Exception when an error occurs during parsing which is sufficiently serious that the parse cannot continue. This exception is thrown when a terminal error occurs during parsing. This allows a trap to be set at the top level of parsing without intervening parsers having to bother with it.


Constructor Index

 o xm_ParseException(String)
Constructor.
 o xm_ParseException(String, int, int)
Constructor.
 o xm_ParseException(String, int, int, int, int)
Constructor.

Method Index

 o getColumnNum()
Get the number of the source column at which the exception occurred.
 o getLastSignificantPosition()
Get the position in the source at which the last significant item occurred.
 o getLineNum()
Get the number of the source line at which the exception occurred.
 o getMessage2()
Get a string representation of this exception.
 o getParsePosition()
Get the position in the source (number of characters) when the exception occurred.

Constructors

 o xm_ParseException
 public xm_ParseException(String InputDescription,
                          int InputLineNum,
                          int InputColumnNum,
                          int InputLastSignificantPosition,
                          int InputParsePosition)
Constructor.

Parameters:
InputDescription - Description of exception
InputLineNum - The source line at which the exception occurred
InputColumnNum - The source column at which the exception occurred
InputLastSignificantPosition - The position of the last significant event
InputParsePosition - The current character position in the source
 o xm_ParseException
 public xm_ParseException(String InputDescription,
                          int InputLineNum,
                          int InputColumnNum)
Constructor.

Parameters:
InputDescription - Description of exception
InputLineNum - The source line at which the exception occurred
InputColumnNum - The source column at which the exception occurred
 o xm_ParseException
 public xm_ParseException(String InputDescription)
Constructor.

Parameters:
InputDescription - Description of exception

Methods

 o getLineNum
 public int getLineNum()
Get the number of the source line at which the exception occurred.

Returns:
The source line at which the exception occurred
 o getColumnNum
 public int getColumnNum()
Get the number of the source column at which the exception occurred.

Returns:
The source column at which the exception occurred
 o getLastSignificantPosition
 public int getLastSignificantPosition()
Get the position in the source at which the last significant item occurred.

Returns:
The position in the source of the last significant event
 o getParsePosition
 public int getParsePosition()
Get the position in the source (number of characters) when the exception occurred.

Returns:
The source position at which the exception occurred
 o getMessage2
 public String getMessage2()
Get a string representation of this exception.

Returns:
A string representation of this exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index