org.jboss.dna.common.text
Class ParsingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.dna.common.text.ParsingException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DdlParserProblem

public class ParsingException
extends RuntimeException

An exception representing a problem during parsing of text.

See Also:
Serialized Form

Constructor Summary
ParsingException(Position position)
           
ParsingException(Position position, String message)
           
ParsingException(Position position, String message, Throwable cause)
           
 
Method Summary
 Position getPosition()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParsingException

public ParsingException(Position position)
Parameters:
position - the position of the error; never null

ParsingException

public ParsingException(Position position,
                        String message,
                        Throwable cause)
Parameters:
position - the position of the error; never null
message - the message
cause - the underlying cause

ParsingException

public ParsingException(Position position,
                        String message)
Parameters:
position - the position of the error; never null
message - the message
Method Detail

getPosition

public Position getPosition()
Returns:
position


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.