Top Description Fields Constructors Methods
org.yaml.snakeyaml.scanner

public Class ScannerException

extends MarkedYAMLException
Class Inheritance
Imports
org.yaml.snakeyaml.error.Mark, .MarkedYAMLException

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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ScannerException(String
Part of the input document in which vicinity the problem occurred.
context
,
Mark
Position of the context within the document.
contextMark
,
String
Part of the input document that caused the problem.
problem
,
Mark
Position of the problem within the document.
problemMark
,
String
Message for the user with further information about the problem.
note
)

Constructs an instance.

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

Constructs an instance.

Method Summary

Inherited from org.yaml.snakeyaml.error.MarkedYAMLException:
getContextgetContextMarkgetMessagegetProblemgetProblemMarktoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.yaml.snakeyaml.error.MarkedYAMLException.serialVersionUID.

Constructor Detail

ScannerExceptionback to summary
public ScannerException(String context, Mark contextMark, String problem, Mark problemMark, String note)

Constructs an instance.

Parameters
context:String

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

contextMark:Mark

Position of the context within the document.

problem:String

Part of the input document that caused the problem.

problemMark:Mark

Position of the problem within the document.

note:String

Message for the user with further information about the problem.

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

Constructs an instance.

Parameters
context:String

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

contextMark:Mark

Position of the context within the document.

problem:String

Part of the input document that caused the problem.

problemMark:Mark

Position of the problem within the document.