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
public class MarkedYamlEngineException extends YamlEngineException
Parsing exception when the marks are available- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMarkedYamlEngineException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark)CreateprotectedMarkedYamlEngineException(String context, Optional<Mark> contextMark, String problem, Optional<Mark> problemMark, Throwable cause)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContext()getterOptional<Mark>getContextMark()getterStringgetMessage()GetterStringgetProblem()getterOptional<Mark>getProblemMark()getterStringtoString()get readable error-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
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 Detail
-
getMessage
public String getMessage()
Getter- Overrides:
getMessagein classThrowable- Returns:
- the problem
-
toString
public String toString()
get readable error
-
getContext
public String getContext()
getter- Returns:
- context of the error
-
getContextMark
public Optional<Mark> getContextMark()
getter- Returns:
- position of the context of the error
-
getProblem
public String getProblem()
getter- Returns:
- the issue
-
-