Package org.yaml.snakeyaml.parser
Class ParserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.yaml.snakeyaml.error.YAMLException
-
- org.yaml.snakeyaml.error.MarkedYAMLException
-
- org.yaml.snakeyaml.parser.ParserException
-
- All Implemented Interfaces:
Serializable
public class ParserException extends MarkedYAMLException
Exception thrown by theParserimplementations in case of malformed input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParserException(String context, Mark contextMark, String problem, Mark problemMark)Constructs an instance.
-
Method Summary
-
Methods inherited from class org.yaml.snakeyaml.error.MarkedYAMLException
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, Mark contextMark, String problem, 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.
-
-