Top Fields Constructors Methods
org.yaml.snakeyaml.error

public Class MarkedYAMLException

extends YAMLException
Class Inheritance
Known Direct Subclasses
org.yaml.snakeyaml.parser.ParserException, org.yaml.snakeyaml.scanner.ScannerException, org.yaml.snakeyaml.composer.ComposerException, org.yaml.snakeyaml.constructor.ConstructorException

Field Summary

Modifier and TypeField and Description
private final String
private final Mark
private final String
private final String
private final Mark
private static final long

Constructor Summary

AccessConstructor and Description
protected
MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark, String note)

protected
MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark, String note, Throwable cause)

protected
MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark)

protected
MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public String
public Mark
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.
public String
public Mark
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Field Detail

contextback to summary
private final String context
contextMarkback to summary
private final Mark contextMark
noteback to summary
private final String note
problemback to summary
private final String problem
problemMarkback to summary
private final Mark problemMark
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.yaml.snakeyaml.error.YAMLException.serialVersionUID.

Constructor Detail

MarkedYAMLExceptionback to summary
protected MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark, String note)
MarkedYAMLExceptionback to summary
protected MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark, String note, Throwable cause)
MarkedYAMLExceptionback to summary
protected MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark)
MarkedYAMLExceptionback to summary
protected MarkedYAMLException(String context, Mark contextMark, String problem, Mark problemMark, Throwable cause)

Method Detail

getContextback to summary
public String getContext()
getContextMarkback to summary
public Mark getContextMark()
getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getProblemback to summary
public String getProblem()
getProblemMarkback to summary
public Mark getProblemMark()
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.
Returns:String

a string representation of this throwable.

Annotations
@Override