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

public Class ReaderException

extends YamlEngineException
Class Inheritance

Indicate invalid input stream

Field Summary

Modifier and TypeField and Description
private final int
private final String
private final int

Constructor Summary

AccessConstructor and Description
public
ReaderException(String
- the name of the reader
name
,
int
- the position from the beginning of the stream
position
,
int
- the invalid character
codePoint
,
String
- the problem
message
)

Create

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the invalid char
getCodePoint
()

getter

public String

Returns:

the name of the reader
getName
()

getter

public int

Returns:

position of the error
getPosition
()

getter

public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

codePointback to summary
private final int codePoint
nameback to summary
private final String name
positionback to summary
private final int position

Constructor Detail

ReaderExceptionback to summary
public ReaderException(String name, int position, int codePoint, String message)

Create

Parameters
name:String

- the name of the reader

position:int

- the position from the beginning of the stream

codePoint:int

- the invalid character

message:String

- the problem

Method Detail

getCodePointback to summary
public int getCodePoint()

getter

Returns:int

the invalid char

getNameback to summary
public String getName()

getter

Returns:String

the name of the reader

getPositionback to summary
public int getPosition()

getter

Returns:int

position of the error

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Annotations
@Override