java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tools.jackson.core.JacksonException
tools.jackson.core.exc.JacksonIOException
- All Implemented Interfaces:
Serializable
Exception type used to wrap low-level I/O issues that are reported
(as
IOException) on reading and writing content using JDK streams
and other sources and targets.
This exception is only used for wrapping IOExceptions
for re-throwing: for actual problem reporting there are alternate
JacksonException subtypes available.
NOTE: use of UncheckedIOException would seem like
an alternative, but cannot be used as it is a checked exception
unlike JacksonException used for other read/write problems.
Because of this, an alternative is used.
Additionally extending JacksonException allows bit more convenient
catching of everything Jackson throws or re-throws.
- Since:
- 3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JacksonException
JacksonException.Reference -
Field Summary
Fields inherited from class tools.jackson.core.JacksonException
_location, _path, _processor -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJacksonIOException(Closeable processor, IOException source) -
Method Summary
Modifier and TypeMethodDescriptionstatic JacksonIOExceptionstatic JacksonIOExceptionconstruct(IOException e, Closeable processor) getCause()withProcessor(Closeable processor) Methods inherited from class tools.jackson.core.JacksonException
_appendPathDesc, _appendReferenceChain, _buildMessage, _exceptionMessage, clearLocation, getLocalizedMessage, getLocation, getMessage, getOriginalMessage, getPath, getPathReference, getPathReference, messageSuffix, prependPath, prependPath, prependPath, processor, toString, withCause, wrapWithPath, wrapWithPath, wrapWithPath, wrapWithPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace