Class ParserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.snakeyaml.engine.v2.exceptions.YamlEngineException
-
- org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException
-
- org.snakeyaml.engine.v2.exceptions.ParserException
-
- All Implemented Interfaces:
Serializable
public class ParserException extends MarkedYamlEngineException
Exception thrown by theParser
implementations in case of malformed input.- See Also:
- Serialized Form
-
-
Method Summary
-
Methods inherited from class org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException
getContext, getContextMark, getMessage, getProblem, getProblemMark, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
ParserException
public ParserException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark)
Constructs an instance.- Parameters:
context
- Part of the input document in which vicinity the problem occurred.contextMark
- Position of thecontext
within the document.problem
- Part of the input document that caused the problem.problemMark
- Position of theproblem
. within the document.
-
-