package com.fasterxml.jackson.datatype.jdk8;

import java.io.IOException;

IOException runtime wrapper

Wrap an IOException to a RuntimeException

/** * {@link IOException} runtime wrapper * <p> * Wrap an {@link IOException} to a {@link RuntimeException} * </p> */
public class WrappedIOException extends RuntimeException { private static final long serialVersionUID = 1L;
Constructor
Params:
  • cause – IOException to wrap
/** * Constructor * * @param cause IOException to wrap */
public WrappedIOException(IOException cause) { super(cause); }
Returns the wrapped IOException
Returns:the wrapped IOException
/** * Returns the wrapped {@link IOException} * * @return the wrapped {@link IOException} */
@Override public IOException getCause() { return (IOException) super.getCause(); } }