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

public Class JacksonIOException

extends JacksonException
Class Inheritance
Imports
java.io.Closeable, .IOException, tools.jackson.core.JacksonException

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 java.io.IOExceptions for re-throwing: for actual problem reporting there are alternate JacksonException subtypes available.

Note

use of java.io.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

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
protected

Method Summary

Modifier and TypeMethod and Description
public static JacksonIOException
public static JacksonIOException
public IOException
getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

public JacksonIOException
Inherited from tools.jackson.core.JacksonException:
_appendPathDesc_appendReferenceChain_buildMessage_exceptionMessageclearLocationgetLocalizedMessagegetLocationgetMessagegetOriginalMessagegetPathgetPathReferencegetPathReferencemessageSuffixprependPathprependPathprependPathprocessortoStringwithCausewrapWithPathwrapWithPathwrapWithPathwrapWithPath

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides tools.jackson.core.JacksonException.serialVersionUID.

Constructor Detail

JacksonIOExceptionback to summary
protected JacksonIOException(Closeable processor, IOException source)

Method Detail

constructback to summary
public static JacksonIOException construct(IOException e)
constructback to summary
public static JacksonIOException construct(IOException e, Closeable processor)
getCauseback to summary
public IOException getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Annotations
@Override
withProcessorback to summary
public JacksonIOException withProcessor(Closeable processor)