Class IOExceptionWrapper

  • All Implemented Interfaces:
    java.io.Serializable

    public class IOExceptionWrapper
    extends java.lang.RuntimeException
    Runtime exception used to encapsulate an IO Exception. This is used to allow throwing I/O exceptions in functional interfaces that do not allow it and catching the exception afterwards.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IOExceptionWrapper​(java.io.IOException e)
      Creates a new exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.IOException getCause()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, 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 Detail

      • IOExceptionWrapper

        public IOExceptionWrapper​(java.io.IOException e)
        Creates a new exception.
        Parameters:
        e - the I/O exception to encapsulate
    • Method Detail

      • getCause

        public java.io.IOException getCause()
        Overrides:
        getCause in class java.lang.Throwable