java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.core.exc.StreamWriteException
- All Implemented Interfaces:
Serializable
Intermediate base class for all write-side streaming processing problems,
mostly content generation issues.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
Fields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsConstructorDescriptionStreamWriteException(JsonGenerator g, String msg) StreamWriteException(JsonGenerator g, String msg, Throwable rootCause) StreamWriteException(JsonGenerator g, Throwable rootCause) -
Method Summary
Modifier and TypeMethodDescriptionMethod that allows accessing underlying processor that triggered this exception; typically eitherJsonParserorJsonGeneratorfor exceptions that originate from streaming API, but may be other types when thrown by databinding.Fluent method that may be used to assign originatingJsonGenerator, to be accessed usingprocessor().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, wrapWithPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
StreamWriteException
-
StreamWriteException
-
StreamWriteException
-
-
Method Details
-
withGenerator
Fluent method that may be used to assign originatingJsonGenerator, to be accessed usingprocessor().- Parameters:
g- Generator to assign- Returns:
- This exception instance (to allow call chaining)
-
processor
Description copied from class:JacksonExceptionMethod that allows accessing underlying processor that triggered this exception; typically eitherJsonParserorJsonGeneratorfor exceptions that originate from streaming API, but may be other types when thrown by databinding.Note that it is possible that
nullmay be returned if code throwing exception either has no access to the processor; or has not been retrofitted to set it; this means that caller needs to take care to check for nulls. Subtypes override this method with co-variant return type, for more type-safe access.NOTE: In Jackson 2.x, accessor was
getProcessor(): in 3.0 changed to non-getter to avoid having to annotate for serialization.- Overrides:
processorin classJacksonException- Returns:
- Originating processor, if available;
nullif not.
-