java.io.IOException s will be passed through as is.
Sub-class of java.io.IOException for convenience.
Since Jackson 2.12 extends intermediate JacksonException type
instead of directly extending java..
Since Jackson 2.16, handles its content as configured using com..
| Modifier and Type | Field and Description |
|---|---|
| protected JsonLocation | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | |
| protected | |
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public JsonLocation | getLocation()
Implements abstract com. Accessor for location information related to position within input
or output (depending on operation), if available; if not available
may return |
| public String | Returns: Originalmessage preceded by optional prefix and followed by
location information, message and location information separated by a linefeedOverrides java. Default implementation overridden so that we can add location information |
| protected String | Returns: Message suffix assigned, if any;null if noneAccessor that sub-classes can override to append additional information right after the main message, but before source location information. |
| public String | Returns: Original message passed in constructorImplements abstract com. Method that allows accessing the original "message" argument,
without additional decorations (like location information)
that overridden |
| public Object | Returns: Originating processor, if available; null if not.Implements abstract com. Method that allows accessing underlying processor that triggered
this exception; typically either |
| public String |
| _location | back to summary |
|---|---|
| protected JsonLocation _location | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| JsonProcessingException | back to summary |
|---|---|
| protected JsonProcessingException(String msg, JsonLocation loc, Throwable rootCause) | |
| JsonProcessingException | back to summary |
|---|---|
| protected JsonProcessingException(String msg) | |
| JsonProcessingException | back to summary |
|---|---|
| protected JsonProcessingException(String msg, JsonLocation loc) | |
| JsonProcessingException | back to summary |
|---|---|
| protected JsonProcessingException(String msg, Throwable rootCause) | |
| JsonProcessingException | back to summary |
|---|---|
| protected JsonProcessingException(Throwable rootCause) | |
| clearLocation | back to summary |
|---|---|
| public void clearLocation() Method that allows to remove context information from this exception's message. Useful when you are parsing security-sensitive data and don't want original data excerpts to be present in Jackson parser error messages.
| |
| getLocation | back to summary |
|---|---|
| public JsonLocation getLocation() Implements abstract com. Doc from com. Accessor for location information related to position within input
or output (depending on operation), if available; if not available
may return Accuracy of location information depends on backend (format) as well as (in some cases) operation being performed.
| |
| getMessage | back to summary |
|---|---|
| public String getMessage() Overrides java. Default implementation overridden so that we can add location information | |
| getMessageSuffix | back to summary |
|---|---|
| protected String getMessageSuffix() Accessor that sub-classes can override to append additional information right after the main message, but before source location information.
| |
| getOriginalMessage | back to summary |
|---|---|
| public String getOriginalMessage() Implements abstract com. Method that allows accessing the original "message" argument,
without additional decorations (like location information)
that overridden | |
| getProcessor | back to summary |
|---|---|
| public Object getProcessor() Implements abstract com. Method that allows accessing underlying processor that triggered
this exception; typically either | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |