Package tools.jackson.dataformat.yaml
Class JacksonYAMLWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.core.exc.StreamWriteException
tools.jackson.dataformat.yaml.JacksonYAMLWriteException
- All Implemented Interfaces:
Serializable
public class JacksonYAMLWriteException
extends tools.jackson.core.exc.StreamWriteException
Exception type thrown by YAML generator when SnakeYAML's emitter throws
a
YamlEngineException.
This wrapping prevents SnakeYAML implementation details from leaking to callers,
which is important for OSGi runtime compatibility and proper abstraction.- Since:
- 3.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
tools.jackson.core.JacksonException.Reference -
Field Summary
Fields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsConstructorDescriptionJacksonYAMLWriteException(tools.jackson.core.JsonGenerator g, String msg, Exception e) Constructor for creating a wrapped exception. -
Method Summary
Methods inherited from class tools.jackson.core.exc.StreamWriteException
processor, withGeneratorMethods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, _exceptionMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, messageSuffix, prependPath, prependPath, prependPath, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath, wrapWithPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
JacksonYAMLWriteException
Constructor for creating a wrapped exception.- Parameters:
g- Generator context where the error occurredmsg- Error message (typically from the underlying SnakeYAML exception)e- Root cause exception (typically a YamlEngineException)
-