public class ServerCloneException extends CloneNotSupportedException
UnicastRemoteObject.UnicastRemoteObject.clone(),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
Exception |
detail
The cause of this exception.
|
| Constructor and Description |
|---|
ServerCloneException(String s)
Create an exception with a message.
|
ServerCloneException(String s,
Exception e)
Create an exception with a message and a cause.
|
| Modifier and Type | Method and Description |
|---|---|
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 ? |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServerCloneException(String s)
s - the messagepublic ServerCloneException(String s, Exception e)
s - the messagee - the causepublic String getMessage()
super.getMessage() + (detail == null ? ""
: "; nested exception is:\n\t" + detail).getMessage in class Throwablepublic Throwable getCause()
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.