Package org.jmxtrans.agent.util.io
Class IoRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jmxtrans.agent.util.io.IoRuntimeException
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
FileNotFoundRuntimeException
public class IoRuntimeException
extends java.lang.RuntimeException
- Author:
- Cyrille Le Clerc
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description IoRuntimeException()IoRuntimeException(java.lang.String message)IoRuntimeException(java.lang.String message, java.lang.Throwable cause)protectedIoRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)IoRuntimeException(java.lang.Throwable cause) -
Method Summary
Modifier and Type Method Description static IoRuntimeExceptionpropagate(java.io.IOException e)This method returns an instanceIoRuntimeException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
IoRuntimeException
public IoRuntimeException() -
IoRuntimeException
public IoRuntimeException(java.lang.String message) -
IoRuntimeException
public IoRuntimeException(java.lang.String message, java.lang.Throwable cause) -
IoRuntimeException
protected IoRuntimeException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace) -
IoRuntimeException
public IoRuntimeException(java.lang.Throwable cause)
-
-
Method Details
-
propagate
This method returns an instanceIoRuntimeException. Inspired bycom.google.common.base.Throwables#propagate(java.lang.Throwable).try { ... } catch (IOException e) { throw IoRuntimeException.propagate(e); }- Parameters:
e-
-