public class RemoteException
extends java.io.IOException
RemoteException
is the common superclass for a number of
communication-related exceptions that may occur during the execution of a
remote method call. Each method of a remote interface, an interface that
extends java.rmi.Remote
, must list
RemoteException
in its throws clause.Modifier and Type | Field and Description |
---|---|
java.lang.Throwable |
detail
Nested Exception to hold wrapped remote exception.
|
Constructor and Description |
---|
RemoteException()
Constructs a
RemoteException with no specified
detail message. |
RemoteException(java.lang.String s)
Constructs a
RemoteException with the specified
detail message. |
RemoteException(java.lang.String s,
java.lang.Throwable ex)
Constructs a
RemoteException with the specified
detail message and nested exception. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Returns the detail message, including the message from the nested
exception if there is one.
|
public java.lang.Throwable detail
This field predates the general-purpose exception chaining facility.
public RemoteException()
RemoteException
with no specified
detail message.public RemoteException(java.lang.String s)
RemoteException
with the specified
detail message.s
- the detail messagepublic RemoteException(java.lang.String s, java.lang.Throwable ex)
RemoteException
with the specified
detail message and nested exception.s
- the detail messageex
- the nested exceptionCopyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.