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

    Constructors
    Constructor
    Description
    JacksonYAMLWriteException(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, withGenerator

    Methods 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, wrapWithPath

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • JacksonYAMLWriteException

      public JacksonYAMLWriteException(tools.jackson.core.JsonGenerator g, String msg, Exception e)
      Constructor for creating a wrapped exception.
      Parameters:
      g - Generator context where the error occurred
      msg - Error message (typically from the underlying SnakeYAML exception)
      e - Root cause exception (typically a YamlEngineException)