net.sourceforge.czt.parser.util
Class ScanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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. |
| 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 |
ScanException
public ScanException(java.lang.String message,
LocInfo locInfo)
- Constructs a new exception with the specified detail message
and location information.
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.