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

public Class StreamReadException

extends JacksonException
Class Inheritance
Known Direct Subclasses
tools.jackson.core.exc.UnexpectedEndOfInputException, tools.jackson.core.exc.InputCoercionException
Imports
tools.jackson.core.*

Intermediate base class for all read-side streaming processing problems, including parsing and input value coercion problems.

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
public
public

Method Summary

Modifier and TypeMethod and Description
private static TokenStreamLocation
public JsonParser
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 StreamReadException

Returns:

This exception instance to allow call chaining
withParser
(JsonParser
Parser instance to assign to this exception
p
)

Fluent method that may be used to assign originating JsonParser, 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

StreamReadExceptionback to summary
public StreamReadException(String msg)
StreamReadExceptionback to summary
public StreamReadException(JsonParser p, String msg)
StreamReadExceptionback to summary
public StreamReadException(JsonParser p, String msg, Throwable rootCause)
StreamReadExceptionback to summary
public StreamReadException(JsonParser p, String msg, TokenStreamLocation loc)
StreamReadExceptionback to summary
public StreamReadException(JsonParser p, String msg, TokenStreamLocation loc, Throwable rootCause)

Method Detail

_locback to summary
private static TokenStreamLocation _loc(JsonParser p)
processorback to summary
public JsonParser 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
withParserback to summary
public StreamReadException withParser(JsonParser p)

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

Note

this instance is modified and no new instance is constructed.

Parameters
p:JsonParser

Parser instance to assign to this exception

Returns:StreamReadException

This exception instance to allow call chaining