jfun.parsec

Class UserException

public class UserException extends RuntimeException

User code can throw this exception when a non-recoverable error is encountered. The framework will transform it to ParserException.

Zephyr Business Solutions Corp.

Author: Ben Yu

Constructor Summary
UserException(String msg)
Create a UserException object.
UserException(String msg, Throwable cause)
Create a UserException object.
UserException(int ind)
Create a UserException object.
UserException(int ind, String msg)
Create a UserException object.
UserException(int ind, String msg, Throwable arg1)
Create a UserException object.
UserException(int ind, Throwable arg0)
Create a UserException object.
Method Summary
intgetInd()
Get the index in the original source.

Constructor Detail

UserException

public UserException(String msg)
Create a UserException object.

Parameters: msg the error message.

UserException

public UserException(String msg, Throwable cause)
Create a UserException object.

Parameters: msg the error message.

UserException

public UserException(int ind)
Create a UserException object.

Parameters: ind the index in the original source. -1 if the index is unknown.

UserException

public UserException(int ind, String msg)
Create a UserException object.

Parameters: ind the index in the original source. -1 if the index is unknown. msg the error message.

UserException

public UserException(int ind, String msg, Throwable arg1)
Create a UserException object.

Parameters: ind the index in the original source. -1 if the index is unknown. msg the error message. arg1 the chained exception.

UserException

public UserException(int ind, Throwable arg0)
Create a UserException object.

Parameters: ind the index in the original source. -1 if the index is unknown. arg0 the chained exception.

Method Detail

getInd

public int getInd()
Get the index in the original source.