Class MarkedYamlEngineException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.snakeyaml.engine.v2.exceptions.YamlEngineException
-
- org.snakeyaml.engine.v2.exceptions.MarkedYamlEngineException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ComposerException
,ConstructorException
,ParserException
,ScannerException
public class MarkedYamlEngineException extends YamlEngineException
Parsing exception when the marks are available- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
context
private java.util.Optional<Mark>
contextMark
private java.lang.String
problem
private java.util.Optional<Mark>
problemMark
-
Constructor Summary
Constructors Modifier Constructor Description protected
MarkedYamlEngineException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark)
Createprotected
MarkedYamlEngineException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark, java.lang.Throwable cause)
Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContext()
getterjava.util.Optional<Mark>
getContextMark()
getterjava.lang.String
getMessage()
Getterjava.lang.String
getProblem()
getterjava.util.Optional<Mark>
getProblemMark()
getterjava.lang.String
toString()
get readable error
-
-
-
Constructor Detail
-
MarkedYamlEngineException
protected MarkedYamlEngineException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark, java.lang.Throwable cause)
Create- Parameters:
context
- - the context of the problemcontextMark
- - position of the contextproblem
- - the issueproblemMark
- - position of the issuecause
- - exception which was thrown
-
MarkedYamlEngineException
protected MarkedYamlEngineException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark)
Create- Parameters:
context
- - the context of the problemcontextMark
- - position of the contextproblem
- - the issueproblemMark
- - position of the issue
-
-
Method Detail
-
getMessage
public java.lang.String getMessage()
Getter- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- the problem
-
toString
public java.lang.String toString()
get readable error- Overrides:
toString
in classjava.lang.Throwable
- Returns:
- readable problem
-
getContext
public java.lang.String getContext()
getter- Returns:
- context of the error
-
getContextMark
public java.util.Optional<Mark> getContextMark()
getter- Returns:
- position of the context of the error
-
getProblem
public java.lang.String getProblem()
getter- Returns:
- the issue
-
getProblemMark
public java.util.Optional<Mark> getProblemMark()
getter- Returns:
- position of the issue
-
-