Class RmicUncheckedIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RmicUncheckedIOException
    extends java.lang.RuntimeException
    Wraps an IOException with an unchecked exception. Copied from the JDK's UncheckedIOException, as it was only added in JDK 8. Once the orb switches to JDK8 as a minimum, this can be replaced with the JDK class.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      RmicUncheckedIOException​(java.io.IOException cause)
      Constructs an instance of this class.
      RmicUncheckedIOException​(java.lang.String message, java.io.IOException cause)
      Constructs an instance of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.IOException getCause()
      Returns the cause of this exception.
      private void readObject​(java.io.ObjectInputStream s)
      Called to read the object from a stream.
      • 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

      • RmicUncheckedIOException

        public RmicUncheckedIOException​(java.lang.String message,
                                        java.io.IOException cause)
        Constructs an instance of this class.
        Parameters:
        message - the detail message, can be null
        cause - the IOException
        Throws:
        java.lang.NullPointerException - if the cause is null
      • RmicUncheckedIOException

        public RmicUncheckedIOException​(java.io.IOException cause)
        Constructs an instance of this class.
        Parameters:
        cause - the IOException
        Throws:
        java.lang.NullPointerException - if the cause is null
    • Method Detail

      • getCause

        public java.io.IOException getCause()
        Returns the cause of this exception.
        Overrides:
        getCause in class java.lang.Throwable
        Returns:
        the IOException which is the cause of this exception.
      • readObject

        private void readObject​(java.io.ObjectInputStream s)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Called to read the object from a stream.
        Throws:
        java.io.InvalidObjectException - if the object is invalid or has a cause that is not an IOException
        java.io.IOException
        java.lang.ClassNotFoundException