001package org.jsoup;
002
003import java.io.IOException;
004
005/**
006 * @deprecated Use {@link java.io.UncheckedIOException} instead. This class acted as a compatibility shim for Java
007 * versions prior to 1.8.
008 */
009// todo annotate @Deprecated in next release (after previous @Deprecations clear)
010public class UncheckedIOException extends java.io.UncheckedIOException {
011    public UncheckedIOException(IOException cause) {
012        super(cause);
013    }
014
015    public UncheckedIOException(String message) {
016        super(new IOException(message));
017    }
018
019    public IOException ioException() {
020        return getCause();
021    }
022}