Class ParserException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ParserException
    extends MarkedYAMLException
    Exception thrown by the Parser implementations in case of malformed input.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ParserException​(java.lang.String context, Mark contextMark, java.lang.String problem, Mark problemMark)
      Constructs an instance.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

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

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

      • ParserException

        public ParserException​(java.lang.String context,
                               Mark contextMark,
                               java.lang.String problem,
                               Mark problemMark)
        Constructs an instance.
        Parameters:
        context - Part of the input document in which vicinity the problem occurred.
        contextMark - Position of the context within the document.
        problem - Part of the input document that caused the problem.
        problemMark - Position of the problem. within the document.