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

public Class ParserException

extends MarkedYamlEngineException
Class Inheritance
Imports
java.util.Optional, org.snakeyaml.engine.v2.parser.Parser

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

Constructor Summary

AccessConstructor and Description
public
ParserException(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
ParserException(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

ParserExceptionback to summary
public ParserException(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.

ParserExceptionback to summary
public ParserException(String problem, Optional<Mark> problemMark)

Create

Parameters
problem:String

- the issue

problemMark:Optional<Mark>

- the position of the issue