Package org.glassfish.rmic.tools.java
Class RmicUncheckedIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.glassfish.rmic.tools.java.RmicUncheckedIOException
-
- All Implemented Interfaces:
java.io.Serializable
public class RmicUncheckedIOException extends java.lang.RuntimeExceptionWraps anIOExceptionwith 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 longserialVersionUID
-
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.IOExceptiongetCause()Returns the cause of this exception.private voidreadObject(java.io.ObjectInputStream s)Called to read the object from a stream.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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 nullcause- theIOException- Throws:
java.lang.NullPointerException- if the cause isnull
-
RmicUncheckedIOException
public RmicUncheckedIOException(java.io.IOException cause)
Constructs an instance of this class.- Parameters:
cause- theIOException- Throws:
java.lang.NullPointerException- if the cause isnull
-
-
Method Detail
-
getCause
public java.io.IOException getCause()
Returns the cause of this exception.- Overrides:
getCausein classjava.lang.Throwable- Returns:
- the
IOExceptionwhich is the cause of this exception.
-
readObject
private void readObject(java.io.ObjectInputStream s) throws java.io.IOException, java.lang.ClassNotFoundExceptionCalled to read the object from a stream.- Throws:
java.io.InvalidObjectException- if the object is invalid or has a cause that is not anIOExceptionjava.io.IOExceptionjava.lang.ClassNotFoundException
-
-