Package org.yaml.snakeyaml.scanner
Class ScannerException
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.scanner.ScannerException
- All Implemented Interfaces:
Serializable
Exception thrown by the
Scanner
implementations in case of malformed
input.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ScannerException
public ScannerException(String context, Mark contextMark, String problem, Mark problemMark, String note) 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.note
- Message for the user with further information about the problem.
-
ScannerException
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.
-