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:
Serializable
- Direct Known Subclasses:
ComposerException
,ConstructorException
,ParserException
,ScannerException
Parsing exception when the marks are available
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MarkedYamlEngineException
(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark) Createprotected
MarkedYamlEngineException
(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark, Throwable cause) Create -
Method Summary
Modifier and TypeMethodDescriptiongettergetterGettergettergettertoString()
get readable errorMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
context
-
contextMark
-
problem
-
problemMark
-
-
Constructor Details
-
MarkedYamlEngineException
protected MarkedYamlEngineException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark, 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(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark) Create- Parameters:
context
- - the context of the problemcontextMark
- - position of the contextproblem
- - the issueproblemMark
- - position of the issue
-
-
Method Details
-
getMessage
Getter- Overrides:
getMessage
in classThrowable
- Returns:
- the problem
-
toString
get readable error -
getContext
getter- Returns:
- context of the error
-
getContextMark
getter- Returns:
- position of the context of the error
-
getProblem
getter- Returns:
- the issue
-
getProblemMark
getter- Returns:
- position of the issue
-