Package groovy.yaml
Class YamlRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
groovy.lang.GroovyRuntimeException
groovy.yaml.YamlRuntimeException
- All Implemented Interfaces:
Serializable
Represents a runtime exception raised while parsing or building YAML.
- Since:
- 3.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception with a detail message.YamlRuntimeException(String msg, Throwable cause) Creates an exception with both a detail message and an underlying cause.YamlRuntimeException(Throwable cause) Creates an exception that wraps the underlying cause. -
Method Summary
Methods inherited from class groovy.lang.GroovyRuntimeException
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModuleMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
YamlRuntimeException
Creates an exception with a detail message.- Parameters:
msg- the description of the failure
-
YamlRuntimeException
Creates an exception that wraps the underlying cause.- Parameters:
cause- the original failure
-
YamlRuntimeException
Creates an exception with both a detail message and an underlying cause.- Parameters:
msg- the description of the failurecause- the original failure
-