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.Stringcontextprivate java.util.Optional<Mark>contextMarkprivate java.lang.Stringproblemprivate java.util.Optional<Mark>problemMark
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarkedYamlEngineException(java.lang.String context, java.util.Optional<Mark> contextMark, java.lang.String problem, java.util.Optional<Mark> problemMark)CreateprotectedMarkedYamlEngineException(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.StringgetContext()getterjava.util.Optional<Mark>getContextMark()getterjava.lang.StringgetMessage()Getterjava.lang.StringgetProblem()getterjava.util.Optional<Mark>getProblemMark()getterjava.lang.StringtoString()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:
getMessagein classjava.lang.Throwable- Returns:
- the problem
-
toString
public java.lang.String toString()
get readable error- Overrides:
toStringin 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
-
-