game.protocol
Class ParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by game.protocol.ParseException
All Implemented Interfaces:
java.io.Serializable

public class ParseException
extends java.lang.Exception

Error in parsing message.

See Also:
Serialized Form

Constructor Summary
ParseException()
           
ParseException(java.lang.String msg)
           
ParseException(java.lang.String txt, int off)
           
ParseException(java.lang.String msg, java.lang.String txt, int off)
           
ParseException(java.lang.String msg, java.lang.String txt, int off, java.lang.Throwable cause)
           
ParseException(java.lang.String msg, java.lang.Throwable cause)
           
ParseException(java.lang.Throwable cause)
           
 
Method Summary
 int getOffset()
           
 java.lang.String getText()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

public ParseException()

ParseException

public ParseException(java.lang.String msg)
Parameters:
msg -

ParseException

public ParseException(java.lang.String msg,
                      java.lang.Throwable cause)
Parameters:
msg -
cause -

ParseException

public ParseException(java.lang.Throwable cause)
Parameters:
cause -

ParseException

public ParseException(java.lang.String txt,
                      int off)
Parameters:
txt - text being parsed
off - offset, in text, of error

ParseException

public ParseException(java.lang.String msg,
                      java.lang.String txt,
                      int off)
Parameters:
msg - detail description
txt - text being parsed
off - offset, in text, of error

ParseException

public ParseException(java.lang.String msg,
                      java.lang.String txt,
                      int off,
                      java.lang.Throwable cause)
Parameters:
msg - detail description
txt - text being parsed
off - offset, in text, of error
cause - another exception that caused this one.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

getText

public java.lang.String getText()

getOffset

public int getOffset()