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

public Class MarkedYamlEngineException

extends YamlEngineException
Class Inheritance
Known Direct Subclasses
org.snakeyaml.engine.v2.exceptions.ParserException, org.snakeyaml.engine.v2.exceptions.ScannerException, org.snakeyaml.engine.v2.exceptions.ComposerException, org.snakeyaml.engine.v2.exceptions.ConstructorException
Imports
java.util.Objects, .Optional

Parsing exception when the marks are available

Field Summary

Modifier and TypeField and Description
private final String
private final Optional<Mark>
private final String
private final Optional<Mark>

Constructor Summary

AccessConstructor and Description
protected
MarkedYamlEngineException(String
- the context of the problem
context
,
Optional<Mark>
- position of the context
contextMark
,
String
- the issue
problem
,
Optional<Mark>
- position of the issue
problemMark
,
Throwable
- exception which was thrown
cause
)

Create

protected
MarkedYamlEngineException(String
- the context of the problem
context
,
Optional<Mark>
- position of the context
contextMark
,
String
- the issue
problem
,
Optional<Mark>
- position of the issue
problemMark
)

Create

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

context of the error
getContext
()

getter

public Optional<Mark>

Returns:

position of the context of the error
getContextMark
()

getter

public String

Returns:

the problem
getMessage
()

Overrides java.lang.Throwable.getMessage.

Getter

public String

Returns:

the issue
getProblem
()

getter

public Optional<Mark>

Returns:

position of the issue
getProblemMark
()

getter

public String

Returns:

readable problem
toString
()

Overrides java.lang.Throwable.toString.

get readable error

Field Detail

contextback to summary
private final String context
contextMarkback to summary
private final Optional<Mark> contextMark
problemback to summary
private final String problem
problemMarkback to summary
private final Optional<Mark> problemMark

Constructor Detail

MarkedYamlEngineExceptionback to summary
protected MarkedYamlEngineException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark, Throwable cause)

Create

Parameters
context:String

- the context of the problem

contextMark:Optional<Mark>

- position of the context

problem:String

- the issue

problemMark:Optional<Mark>

- position of the issue

cause:Throwable

- exception which was thrown

MarkedYamlEngineExceptionback to summary
protected MarkedYamlEngineException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark)

Create

Parameters
context:String

- the context of the problem

contextMark:Optional<Mark>

- position of the context

problem:String

- the issue

problemMark:Optional<Mark>

- position of the issue

Method Detail

getContextback to summary
public String getContext()

getter

Returns:String

context of the error

getContextMarkback to summary
public Optional<Mark> getContextMark()

getter

Returns:Optional<Mark>

position of the context of the error

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Getter

Returns:String

the problem

Annotations
@Override
getProblemback to summary
public String getProblem()

getter

Returns:String

the issue

getProblemMarkback to summary
public Optional<Mark> getProblemMark()

getter

Returns:Optional<Mark>

position of the issue

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

get readable error

Returns:String

readable problem

Annotations
@Override