Top Description Constructors Methods
org.snakeyaml.engine.v2.exceptions

public Class ScannerException

extends MarkedYamlEngineException
Class Inheritance
Imports
java.util.Optional, org.snakeyaml.engine.v2.scanner.Scanner

Exception thrown by the Scanner implementations in case of malformed input.

Constructor Summary

AccessConstructor and Description
public
ScannerException(String
Part of the input document in which vicinity the problem occurred.
context
,
Optional<Mark>
Position of the context within the document.
contextMark
,
String
Part of the input document that caused the problem.
problem
,
Optional<Mark>
Position of the problem within the document.
problemMark
)

Constructs an instance.

public
ScannerException(String
- the issue
problem
,
Optional<Mark>
- the position of the issue
problemMark
)

Create

Method Summary

Inherited from org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException:
getContextgetContextMarkgetMessagegetProblemgetProblemMarktoString

Constructor Detail

ScannerExceptionback to summary
public ScannerException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark)

Constructs an instance.

Parameters
context:String

Part of the input document in which vicinity the problem occurred.

contextMark:Optional<Mark>

Position of the context within the document.

problem:String

Part of the input document that caused the problem.

problemMark:Optional<Mark>

Position of the problem within the document.

ScannerExceptionback to summary
public ScannerException(String problem, Optional<Mark> problemMark)

Create

Parameters
problem:String

- the issue

problemMark:Optional<Mark>

- the position of the issue