public class InvocationException
extends java.lang.Exception
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.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
action |
protected QName |
code |
protected ParameterValue |
detail |
protected DataStructure |
reason |
protected QName |
subcode |
| Constructor and Description |
|---|
InvocationException(FaultMessage fault)
Creates a new instance wrapping the specified fault message.
|
InvocationException(Fault fault,
QName code)
Creates a new instance wrapping the specified
fault. |
InvocationException(Fault fault,
QName code,
DataStructure 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. |
InvocationException(Fault fault,
QName code,
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,
QName code,
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. |
InvocationException(java.lang.String action,
QName code,
QName subcode,
DataStructure reason,
ParameterValue detail)
Create a new instance from the specified arguments.
|
| Modifier and Type | Method and Description |
|---|---|
protected static DataStructure |
createReasonFromString(java.lang.String reason) |
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() |
protected final java.lang.String action
protected final QName code
protected final QName subcode
protected final DataStructure reason
protected final ParameterValue detail
public InvocationException(Fault fault, QName code)
fault.fault - the fault to encapsulatepublic InvocationException(Fault fault, QName code, 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 faultpublic InvocationException(Fault fault, QName code, 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(Fault fault, QName code, DataStructure 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 frompublic InvocationException(java.lang.String action,
QName code,
QName subcode,
DataStructure reason,
ParameterValue detail)
action - the wsa:Action associated to the faultcode - the SOAP code of the faultsubcode - the SOAP subcode of the faultreason - the fualt's reason, a data structure of LocalizedString , each for a different language or locale
instancesdetail - additional user-defined data further describing the faultprotected static DataStructure createReasonFromString(java.lang.String reason)
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()