Class ParseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MissingRequiredPropertyException

Exception that indicates invalid syntax encountered during parsing.
See Also:
  • Constructor Details

    • ParseException

      public ParseException(ParserSession session, Exception causedBy)
      Constructor.
      Parameters:
      session - The parser session.
      Can be null (the message is not augmented with position/debug info).
      causedBy - The inner exception.
      Must not be null.
    • ParseException

      public ParseException(ParserSession session, String message, Object... args)
      Constructor.
      Parameters:
      session - The parser session.
      Can be null (the message is not augmented with position/debug info).
      message - The exception message containing String.format-style (%s) arguments.
      args - Optional String.format-style arguments.
    • ParseException

      public ParseException(ParserSession session, Throwable causedBy, String message, Object... args)
      Constructor.
      Parameters:
      session - The parser session.
      Can be null (the message is not augmented with position/debug info).
      causedBy - The cause of this exception.
      Can be null (no cause is set).
      message - The exception message containing String.format-style (%s) arguments.
      args - Optional String.format-style arguments.
    • ParseException

      public ParseException(String message, Object... args)
      Constructor.
      Parameters:
      message - The String.format-style message (%s placeholders).
      args - Optional String.format-style arguments.
    • ParseException

      public ParseException(Throwable causedBy)
      Constructor.
      Parameters:
      causedBy - The cause of this exception.
      Can be null (no cause is set).
    • ParseException

      public ParseException(Throwable causedBy, String message, Object... args)
      Constructor.
      Parameters:
      causedBy - The cause of this exception.
      Can be null (no cause is set).
      message - The String.format-style message (%s placeholders).
      args - Optional String.format-style arguments.
  • Method Details