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)  
    protected IoRuntimeException​(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 IoRuntimeException propagate​(java.io.IOException e)
    This method returns an instance IoRuntimeException.

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods 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

      public static IoRuntimeException propagate​(java.io.IOException e)
      This method returns an instance IoRuntimeException. Inspired by com.google.common.base.Throwables#propagate(java.lang.Throwable).
           try {
               ...
           } catch (IOException e) {
               throw IoRuntimeException.propagate(e);
           }
       
      Parameters:
      e -