public class ActivationException extends java.lang.Exception
java.rmi.activation.| Modifier and Type | Field and Description |
|---|---|
java.lang.Throwable |
detail
The cause of this exception.
|
| Constructor and Description |
|---|
ActivationException()
Create an exception with no message, and cause initialized to null.
|
ActivationException(java.lang.String s)
Create an exception with the given message, and cause initialized to null.
|
ActivationException(java.lang.String s,
java.lang.Throwable ex)
Create an exception with the given message and cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getCause()
Returns the cause of this exception.
|
java.lang.String |
getMessage()
This method returns a message indicating what went wrong, in this
format:
super.getMessage() + (detail == null ? |
public java.lang.Throwable detail
public ActivationException()
public ActivationException(java.lang.String s)
s - the messagepublic ActivationException(java.lang.String s, java.lang.Throwable ex)
s - the messageex - the causepublic java.lang.String getMessage()
super.getMessage() + (detail == null ? ""
: "; nested exception is:\n\t" + detail).getMessage in class java.lang.Throwablepublic java.lang.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.getCause in class java.lang.Throwable