Added in 2.10 to eventually replace com..
| Modifier and Type | Field and Description |
|---|---|
| protected transient JsonParser | |
| protected RequestPayload | _requestPayload
Optional payload that can be assigned to pass along for error reporting or handling purposes. |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMessage()
Overrides com. |
| public JsonParser | getProcessor()
Overrides com. JsonParser or JsonGenerator
for exceptions that originate from streaming API.
|
| public RequestPayload | Returns: request body, if payload was specified; `null` otherwiseMethod that may be called to find payload that was being parsed, if one was specified for parser that threw this Exception. |
| public String | Returns: request body as String, if payload was specified; `null` otherwiseThe method returns the String representation of the request payload if one was specified for parser that threw this Exception. |
| public abstract StreamReadException | Returns: This exception instance to allow call chainingParser instance to assign to this exception p)Fluent method that may be used to assign originating |
| public abstract StreamReadException | Returns: This exception instance to allow call chainingPayload to assign to this exception payload)Fluent method that may be used to assign payload to this exception, to let recipient access it for diagnostics purposes. |
| _processor | back to summary |
|---|---|
| protected transient JsonParser _processor | |
| _requestPayload | back to summary |
|---|---|
| protected RequestPayload _requestPayload Optional payload that can be assigned to pass along for error reporting or handling purposes. Core streaming parser implementations DO NOT initialize this; it is up to using applications and frameworks to populate it. | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID Hides com. | |
| StreamReadException | back to summary |
|---|---|
| protected StreamReadException(JsonParser p, String msg) | |
| StreamReadException | back to summary |
|---|---|
| protected StreamReadException(JsonParser p, String msg, Throwable root) | |
| StreamReadException | back to summary |
|---|---|
| protected StreamReadException(JsonParser p, String msg, JsonLocation loc) | |
| StreamReadException | back to summary |
|---|---|
| protected StreamReadException(JsonParser p, String msg, JsonLocation loc, Throwable rootCause) | |
| StreamReadException | back to summary |
|---|---|
| protected StreamReadException(String msg, JsonLocation loc, Throwable rootCause) | |
| StreamReadException | back to summary |
|---|---|
| protected StreamReadException(String msg) | |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides com. Overriding the getMessage() to include the request body
| |
| getProcessor | back to summary |
|---|---|
| public JsonParser getProcessor() Overrides com. Doc from com. Method that allows accessing underlying processor that triggered
this exception; typically either
| |
| getRequestPayload | back to summary |
|---|---|
| public RequestPayload getRequestPayload() Method that may be called to find payload that was being parsed, if one was specified for parser that threw this Exception.
| |
| getRequestPayloadAsString | back to summary |
|---|---|
| public String getRequestPayloadAsString() The method returns the String representation of the request payload if one was specified for parser that threw this Exception.
| |
| withParser | back to summary |
|---|---|
| public abstract StreamReadException withParser(JsonParser p) Fluent method that may be used to assign originating Note `this` instance is modified and no new instance is constructed.
| |
| withRequestPayload | back to summary |
|---|---|
| public abstract StreamReadException withRequestPayload(RequestPayload payload) Fluent method that may be used to assign payload to this exception, to let recipient access it for diagnostics purposes. Note `this` instance is modified and no new instance is constructed.
| |