Exception: java.rmi.server.ServerCloneException
- public exception ServerCloneException
- extends CloneNotSupportedException
A
ServerCloneException is thrown if a remote exception occurs
during the cloning of a UnicastRemoteObject.
As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "nested exception" that may be provided at construction time and accessed via the public java.rmi.server.ServerCloneException.detail field is now known as the cause, and may be accessed via the Throwable.getCause() method, as well as the aforementioned "legacy field."
Invoking the method Throwable.initCause(java.lang.Throwable) on an
instance of ServerCloneException always throws IllegalStateException.
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.CloneNotSupportedException
- java.rmi.server.ServerCloneException
Methods
-
ServerCloneExceptiontop
public ServerCloneException(String s)Constructs aServerCloneExceptionwith the specified detail message. -
ServerCloneExceptiontop
Constructs aServerCloneExceptionwith the specified detail message and cause. -
getCausetop
public Throwable getCause()Returns the cause of this exception. This method returns the value of the java.rmi.server.ServerCloneException.detail field. -
getMessagetop
public String getMessage()Returns the detail message, including the message from the cause, if any, of this exception.- Override hierarchy:
- getMessage from Throwable
Fields
-
detail
public Exception detailThe cause of the exception.This field predates the general-purpose exception chaining facility. The Throwable.getCause() method is now the preferred means of obtaining this information.
-
serialVersionUID
static final private long serialVersionUID = 6617456357664815945
