org.jvyamlb.exceptions
Class PositionedScannerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jvyamlb.exceptions.YAMLException
                  extended by org.jvyamlb.exceptions.ScannerException
                      extended by org.jvyamlb.exceptions.PositionedScannerException
All Implemented Interfaces:
java.io.Serializable, Positionable

public class PositionedScannerException
extends ScannerException
implements Positionable

Author:
Ola Bini
See Also:
Serialized Form

Field Summary
private  Position.Range range
           
 
Constructor Summary
PositionedScannerException(java.lang.String when, java.lang.String what, java.lang.String note, Position.Range range)
           
PositionedScannerException(java.lang.Throwable thr, Position.Range range)
           
 
Method Summary
 Position getPosition()
           
 Position.Range getRange()
           
 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
 

Field Detail

range

private Position.Range range
Constructor Detail

PositionedScannerException

public PositionedScannerException(java.lang.String when,
                                  java.lang.String what,
                                  java.lang.String note,
                                  Position.Range range)

PositionedScannerException

public PositionedScannerException(java.lang.Throwable thr,
                                  Position.Range range)
Method Detail

getPosition

public Position getPosition()
Specified by:
getPosition in interface Positionable

getRange

public Position.Range getRange()
Specified by:
getRange in interface Positionable

toString

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