jfun.parsec
Class UserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.parsec.UserException
All Implemented Interfaces:
java.io.Serializable

public class UserException
extends java.lang.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
See Also:
Serialized Form

Constructor Summary
UserException(int ind)
          Create a UserException object.
UserException(int ind, java.lang.String msg)
          Create a UserException object.
UserException(int ind, java.lang.String msg, java.lang.Throwable arg1)
          Create a UserException object.
UserException(int ind, java.lang.Throwable arg0)
          Create a UserException object.
UserException(java.lang.String msg)
          Create a UserException object.
UserException(java.lang.String msg, java.lang.Throwable cause)
          Create a UserException object.
 
Method Summary
 int getInd()
          Get the index in the original source.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserException

public UserException(java.lang.String msg)
Create a UserException object.

Parameters:
msg - the error message.

UserException

public UserException(java.lang.String msg,
                     java.lang.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,
                     java.lang.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,
                     java.lang.String msg,
                     java.lang.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,
                     java.lang.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.