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:
java.io.Serializable
public class ParserException extends MarkedYamlEngineException
Exception thrown by theParserimplementations in case of malformed input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParserException(java.lang.String problem, java.util.Optional<Mark> problemMark)CreateParserException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark)Constructs an instance.
-
Method Summary
-
Methods inherited from class org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException
getContext, getContextMark, getMessage, getProblem, getProblemMark, toString
-
-
-
-
Constructor Detail
-
ParserException
public ParserException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark)Constructs an instance.- Parameters:
context- Part of the input document in which vicinity the problem occurred.contextMark- Position of thecontextwithin the document.problem- Part of the input document that caused the problem.problemMark- Position of theproblem. within the document.
-
ParserException
public ParserException(java.lang.String problem, java.util.Optional<Mark> problemMark)Create- Parameters:
problem- - the issueproblemMark- - the position of the issue
-
-