net.sourceforge.czt.parser.util
Class ScanException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sourceforge.czt.parser.util.ScanException
All Implemented Interfaces:
java.io.Serializable, CztError, LocInfo

public class ScanException
extends java.lang.RuntimeException
implements CztError

This exception can be thrown by a scanner when unexpected tokens are encountered.

See Also:
Serialized Form

Constructor Summary
ScanException(java.lang.String message, LocInfo locInfo)
          Constructs a new exception with the specified detail message and location information.
 
Method Summary
 int getColumn()
           
 ErrorType getErrorType()
           
 int getLength()
           
 int getLine()
           
 java.lang.String getSource()
           
 int getStart()
           
 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
 
Methods inherited from interface net.sourceforge.czt.parser.util.CztError
getMessage
 

Constructor Detail

ScanException

public ScanException(java.lang.String message,
                     LocInfo locInfo)
Constructs a new exception with the specified detail message and location information.

Method Detail

getLine

public int getLine()
Specified by:
getLine in interface LocInfo

getColumn

public int getColumn()
Specified by:
getColumn in interface LocInfo

getStart

public int getStart()
Specified by:
getStart in interface LocInfo

getLength

public int getLength()
Specified by:
getLength in interface LocInfo

getSource

public java.lang.String getSource()
Specified by:
getSource in interface LocInfo

getErrorType

public ErrorType getErrorType()
Specified by:
getErrorType in interface CztError

toString

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


Copyright © 2003-2007 Community Z Tools Project. All Rights Reserved.