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:
Serializable
- Direct Known Subclasses:
FileNotFoundRuntimeException
public class IoRuntimeException extends RuntimeException
- Author:
- Cyrille Le Clerc
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description IoRuntimeException()IoRuntimeException(String message)IoRuntimeException(String message, Throwable cause)protectedIoRuntimeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)IoRuntimeException(Throwable cause) -
Method Summary
Modifier and Type Method Description static IoRuntimeExceptionpropagate(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, toString
-
Constructor Details
-
IoRuntimeException
public IoRuntimeException() -
IoRuntimeException
-
IoRuntimeException
-
IoRuntimeException
-
IoRuntimeException
-
-
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-
-