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:
Serializable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance of this class.RmicUncheckedIOException
(String message, IOException cause) Constructs an instance of this class. -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
Returns the cause of this exception.private void
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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
RmicUncheckedIOException
Constructs an instance of this class.- Parameters:
message
- the detail message, can be nullcause
- theIOException
- Throws:
NullPointerException
- if the cause isnull
-
RmicUncheckedIOException
Constructs an instance of this class.- Parameters:
cause
- theIOException
- Throws:
NullPointerException
- if the cause isnull
-
-
Method Details
-
getCause
Returns the cause of this exception. -
readObject
Called to read the object from a stream.- Throws:
InvalidObjectException
- if the object is invalid or has a cause that is not anIOException
IOException
ClassNotFoundException
-