|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.rmi.activation.ActivationException
public class ActivationException
General exception class for java.rmi.activation
.
Field Summary | |
---|---|
Throwable |
detail
The cause of this exception. |
Constructor Summary | |
---|---|
ActivationException()
Create an exception with no message, and cause initialized to null. |
|
ActivationException(String s)
Create an exception with the given message, and cause initialized to null. |
|
ActivationException(String s,
Throwable ex)
Create an exception with the given message and 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 ? |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Throwable detail
Constructor Detail |
---|
public ActivationException()
public ActivationException(String s)
s
- the messagepublic ActivationException(String s, Throwable ex)
s
- the messageex
- the causeMethod Detail |
---|
public String getMessage()
super.getMessage() + (detail == null ? ""
: "; nested exception is:\n\t" + detail)
.
getMessage
in class Throwable
public 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 Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |