Package ratpack.parse

Class ParserException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParserException
    extends ParseException
    Wraps an exception thrown by a parser while parsing.

    The cause of this exception is always the exception thrown by the parser.

    See Also:
    Context.parse(Parse), Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserException​(Parser<?> parser, java.lang.Throwable cause)
      Constructor.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParserException

        public ParserException​(Parser<?> parser,
                               java.lang.Throwable cause)
        Constructor.
        Parameters:
        parser - the parser that failed
        cause - the exception thrown by the parser