org.jvyamlb.exceptions
Class PositionedParserException

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.ParserException
                      extended by org.jvyamlb.exceptions.PositionedParserException
All Implemented Interfaces:
java.io.Serializable, Positionable

public class PositionedParserException
extends ParserException
implements Positionable

Author:
Ola Bini
See Also:
Serialized Form

Field Summary
private  Position.Range range
           
 
Constructor Summary
PositionedParserException(java.lang.String when, java.lang.String what, java.lang.String note, Position.Range range)
           
PositionedParserException(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

PositionedParserException

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

PositionedParserException

public PositionedParserException(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 ParserException