|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.ws4d.java.service.InvocationException
public class InvocationException
Exceptions of this class are thrown to indicate the occurrence of a
user-defined fault during the invocation of a operation or
the dispatching of a DefaultEventSource. The state encapsulated
within such an exception allows a caller to determine the
type of fault and extract any additional
user-defined data attached to it.
| Constructor Summary | |
|---|---|
InvocationException(Fault fault)
Creates a new instance wrapping the specified fault. |
|
InvocationException(FaultMessage fault)
Creates a new instance wrapping the specified fault message. |
|
InvocationException(Fault fault,
ParameterValue params)
Creates a new instance representing the specified fault and
carrying the given user-defined data params as additional
fault details. |
|
InvocationException(Fault fault,
java.lang.String reason,
ParameterValue params)
Creates a new instance representing the specified fault with
the given reason and carrying the user-defined data params
as additional fault details. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAction()
Returns the wsa:Action URI of the fault this exception refers to. |
QName |
getCode()
Returns the SOAP code of the fault this exception refers to. |
ParameterValue |
getDetail()
Returns user-defined additional data about the encapsulated fault. |
java.lang.String |
getMessage()
|
DataStructure |
getReason()
Returns a data structure of LocalizedString instances, each in a
different language/locale, representing the textual reason of the fault
this exception refers to. |
QName |
getSubcode()
Returns the SOAP subcode of the fault this exception refers to. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationException(Fault fault)
fault.
fault - the fault to encapsulate
public InvocationException(Fault fault,
ParameterValue params)
fault and
carrying the given user-defined data params as additional
fault details.
fault - the fault this exception representsparams - user-defined additional data about the fault
public InvocationException(Fault fault,
java.lang.String reason,
ParameterValue params)
fault with
the given reason and carrying the user-defined data params
as additional fault details.
fault - the fault this exception representsreason - the fault reasonparams - user-defined additional data about the faultpublic InvocationException(FaultMessage fault)
fault - the message to extract fault information from| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getAction()
public QName getCode()
public QName getSubcode()
public DataStructure getReason()
LocalizedString instances, each in a
different language/locale, representing the textual reason of the fault
this exception refers to.
public ParameterValue getDetail()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||