Class ScannerException
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.ScannerException
- All Implemented Interfaces:
Serializable
Exception thrown by the
Scanner implementations in case of malformed input.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MarkedYamlEngineException
getContext, getContextMark, getMessage, getProblem, getProblemMark, toStringMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ScannerException
public ScannerException(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 thecontextwithin the document.problem- Part of the input document that caused the problem.problemMark- Position of theproblemwithin the document.
-
ScannerException
-