public class WriteAbortedException extends ObjectStreamException
| Modifier and Type | Field and Description |
|---|---|
java.lang.Exception |
detail
The cause of this exception.
|
| Constructor and Description |
|---|
WriteAbortedException(java.lang.String msg,
java.lang.Exception detail)
Create a new WriteAbortedException with a specified 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.Exception detail
public WriteAbortedException(java.lang.String msg, java.lang.Exception detail)
msg - the messagedetail - the causepublic java.lang.String getMessage()
super.getMessage() + (detail == null ? "" : "; " + 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