Top Description Fields Constructors Methods
tools.jackson.core.exc

public Class StreamWriteException

extends JacksonException
Class Inheritance
Imports
tools.jackson.core.*

Intermediate base class for all write-side streaming processing problems, mostly content generation issues.

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from tools.jackson.core.JacksonException:
_location_path_processor

Constructor Summary

AccessConstructor and Description
public
public
public

Method Summary

Modifier and TypeMethod and Description
public JsonGenerator
processor()

Overrides tools.jackson.core.JacksonException.processor.

Method that allows accessing underlying processor that triggered this exception; typically either JsonParser or JsonGenerator for exceptions that originate from streaming API, but may be other types when thrown by databinding.

public StreamWriteException

Returns:

This exception instance (to allow call chaining)
withGenerator
(JsonGenerator
Generator to assign
g
)

Fluent method that may be used to assign originating JsonGenerator, to be accessed using processor().

Inherited from tools.jackson.core.JacksonException:
_appendPathDesc_appendReferenceChain_buildMessage_exceptionMessageclearLocationgetLocalizedMessagegetLocationgetMessagegetOriginalMessagegetPathgetPathReferencegetPathReferencemessageSuffixprependPathprependPathprependPathtoStringwithCausewrapWithPathwrapWithPathwrapWithPathwrapWithPath

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.core.JacksonException.serialVersionUID.

Constructor Detail

StreamWriteExceptionback to summary
public StreamWriteException(JsonGenerator g, Throwable rootCause)
StreamWriteExceptionback to summary
public StreamWriteException(JsonGenerator g, String msg)
StreamWriteExceptionback to summary
public StreamWriteException(JsonGenerator g, String msg, Throwable rootCause)

Method Detail

processorback to summary
public JsonGenerator processor()

Overrides tools.jackson.core.JacksonException.processor.

Doc from tools.jackson.core.JacksonException.processor.

Method that allows accessing underlying processor that triggered this exception; typically either JsonParser or JsonGenerator for exceptions that originate from streaming API, but may be other types when thrown by databinding.

Note that it is possible that null may 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.

Annotations
@Override
withGeneratorback to summary
public StreamWriteException withGenerator(JsonGenerator g)

Fluent method that may be used to assign originating JsonGenerator, to be accessed using processor().

Parameters
g:JsonGenerator

Generator to assign

Returns:StreamWriteException

This exception instance (to allow call chaining)