|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Fault
Faults may be returned from a service in response to receiving and acting upon messages. A fault consists of a unique code (MANDATORY) and a reason string (OPTIONAL). An OPTIONAL throwable may also be returned.
| Field Summary | |
|---|---|
static java.lang.String |
THROWABLE_CONTENT
|
| Method Summary | |
|---|---|
java.lang.Throwable |
getCause()
Get the original Throwable. |
java.net.URI |
getCode()
|
java.lang.String |
getReason()
|
void |
setCause(java.lang.Throwable ex)
Set the original Throwable. |
void |
setCode(java.net.URI code)
Set the unique code for this fault. |
void |
setReason(java.lang.String reason)
Set the optional reason for this fault. |
| Field Detail |
|---|
static final java.lang.String THROWABLE_CONTENT
| Method Detail |
|---|
java.net.URI getCode()
void setCode(java.net.URI code)
code - the code.java.lang.String getReason()
void setReason(java.lang.String reason)
reason - the reason for the fault.java.lang.Throwable getCause()
void setCause(java.lang.Throwable ex)
ex - the throwable.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||