- All Implemented Interfaces:
- Direct Known Subclasses:
public abstract class JacksonException extends IOExceptionBase class for all Jackson-produced checked exceptions.
For Jackson 2.x this base type is not widely used (instead, its main subtype
JsonProcessingExceptionis): it is provided more for forwards-compatibility purposes as 3.x will base all other types directly on it and deprecate
JsonProcessingException(as well as chance its type to unchecked).
- See Also:
- Serialized Form
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
getLocation()Accessor for location information related to position within input or output (depending on operation), if available; if not available may return
getOriginalMessage()Method that allows accessing the original "message" argument, without additional decorations (like location information) that overridden
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public abstract JsonLocation getLocation()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.
- Location in input or output that triggered the problem reported, if
public abstract String getOriginalMessage()
- Original, unmodified
messageargument used to construct this exception instance
public abstract Object getProcessor()Method that allows accessing underlying processor that triggered this exception; typically either
JsonGeneratorfor exceptions that originate from streaming API, but other abstractions when thrown by databinding.
Note that it is possible that `null` may be returned if code throwing exception either has no access to 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.
- Originating processor, if available;