java.rmi.server
public class ServerCloneException extends CloneNotSupportedException
UnicastRemoteObject
.
Since: 1.1
See Also: clone
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
Exception | detail
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 | |
---|---|
Throwable | getCause()
Returns the cause of this exception. |
String | getMessage()
This method returns a message indicating what went wrong, in this
format:
super.getMessage() + (detail == null ? |
Serial: the exception cause
Parameters: s the message
Parameters: s the message e the cause
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
super.getMessage() + (detail == null ? ""
: "; nested exception is:\n\t" + detail)
.
Returns: the chained message