java.rmi.server

Class ServerCloneException

public class ServerCloneException extends CloneNotSupportedException

Thrown if a remote exception occurs during the cloning process of a UnicastRemoteObject.

Since: 1.1

See Also: clone

UNKNOWN: updated to 1.4

Field Summary
Exceptiondetail
The cause of this exception.
Constructor Summary
ServerCloneException(String s)
Create an exception with a message.
ServerCloneException(String s, Exception e)
Create an exception with a message and a cause.
Method Summary
ThrowablegetCause()
Returns the cause of this exception.
StringgetMessage()
This method returns a message indicating what went wrong, in this format: super.getMessage() + (detail == null ?

Field Detail

detail

public Exception detail
The cause of this exception. This pre-dates the exception chaining of Throwable; and although you can change this field, you are wiser to leave it alone.

Serial: the exception cause

Constructor Detail

ServerCloneException

public ServerCloneException(String s)
Create an exception with a message.

Parameters: s the message

ServerCloneException

public ServerCloneException(String s, Exception e)
Create an exception with a message and a cause.

Parameters: s the message e the cause

Method Detail

getCause

public Throwable getCause()
Returns the cause of this exception. Note that this may not be the original cause, thanks to the detail field being public and non-final (yuck). However, to avoid violating the contract of Throwable.getCause(), this returns null if detail == this, as no exception can be its own cause.

Returns: the cause

Since: 1.4

getMessage

public String getMessage()
This method returns a message indicating what went wrong, in this format: super.getMessage() + (detail == null ? "" : "; nested exception is:\n\t" + detail).

Returns: the chained message