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:
java.io.Serializable
public class ScannerException extends MarkedYamlEngineException
Exception thrown by theScannerimplementations in case of malformed input.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScannerException(java.lang.String problem, java.util.Optional<Mark> problemMark)CreateScannerException(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
-
ScannerException
public ScannerException(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 theproblemwithin the document.
-
ScannerException
public ScannerException(java.lang.String problem, java.util.Optional<Mark> problemMark)Create- Parameters:
problem- - the issueproblemMark- - the position of the issue
-
-