Package org.fugerit.java.core.io.helper
Class HelperIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.fugerit.java.core.io.helper.HelperIOException
-
- All Implemented Interfaces:
Serializable
public class HelperIOException extends IOException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HelperIOException()
HelperIOException(String message)
HelperIOException(String message, Throwable cause)
HelperIOException(Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <E extends Exception>
voidapply(UnsafeVoid<E> fun)
static void
close(Closeable ac)
static void
close(AutoCloseable ac)
static IOException
convertEx(Exception e)
static IOException
convertEx(String baseMessage, Exception e)
static IOException
convertExMethod(String method, Exception e)
static <T,E extends Exception>
Tget(UnsafeSupplier<T,E> fun)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
convertEx
public static IOException convertEx(String baseMessage, Exception e)
-
convertExMethod
public static IOException convertExMethod(String method, Exception e)
-
convertEx
public static IOException convertEx(Exception e)
-
close
public static void close(AutoCloseable ac) throws IOException
- Throws:
IOException
-
close
public static void close(Closeable ac) throws IOException
- Throws:
IOException
-
get
public static <T,E extends Exception> T get(UnsafeSupplier<T,E> fun) throws IOException
- Throws:
IOException
-
apply
public static <E extends Exception> void apply(UnsafeVoid<E> fun) throws IOException
- Throws:
IOException
-
-