Top Description Fields Constructors Methods
javax.xml.rpc.soap

public Class SOAPFaultException

extends RuntimeException
Class Inheritance
Imports
javax.xml.namespace.QName, javax.xml.soap.Detail

The SOAPFaultException exception represents a SOAP fault.

The message part in the SOAP fault maps to the contents of faultdetail element accessible through the getDetail method on the SOAPFaultException. The method createDetail on the javax.xml.soap.SOAPFactory creates an instance of the javax.xml.soap.Detail.

The faultstring provides a human-readable description of the SOAP fault. The faultcode element provides an algorithmic mapping of the SOAP fault.

Refer to SOAP 1.1 and WSDL 1.1 specifications for more details of the SOAP faults.

Author
Rahul Sharma
Version
1.0
See Also
javax.xml.soap.Detail, javax.xml.soap.SOAPFactory#createDetail

Field Summary

Modifier and TypeField and Description
private Detail
private String
private QName
private String

Constructor Summary

AccessConstructor and Description
public
SOAPFaultException(QName
QName for the SOAP faultcode
faultcode
,
String
faultstring element of SOAP fault
faultstring
,
String
faultactor element of SOAP fault
faultactor
,
Detail
faultdetail element of SOAP fault
faultdetail
)

Constructor for the SOAPFaultException

Method Summary

Modifier and TypeMethod and Description
public Detail

Returns:

detail element of the SOAP fault
getDetail
()

Gets the detail element.

public String

Returns:

faultactor element of the SOAP fault
getFaultActor
()

Gets the faultactor element.

public QName

Returns:

QName of the faultcode element
getFaultCode
()

Gets the faultcode element.

public String

Returns:

faultstring element of the SOAP fault
getFaultString
()

Gets the faultstring element.

Field Detail

detailback to summary
private Detail detail
faultactorback to summary
private String faultactor
faultcodeback to summary
private QName faultcode
faultstringback to summary
private String faultstring

Constructor Detail

SOAPFaultExceptionback to summary
public SOAPFaultException(QName faultcode, String faultstring, String faultactor, Detail faultdetail)

Constructor for the SOAPFaultException

Parameters
faultcode:QName

QName for the SOAP faultcode

faultstring:String

faultstring element of SOAP fault

faultactor:String

faultactor element of SOAP fault

faultdetail:Detail

faultdetail element of SOAP fault

See Also
javax.xml.soap.SOAPFactory#createDetail

Method Detail

getDetailback to summary
public Detail getDetail()

Gets the detail element. The detail element is intended for carrying application specific error information related to the SOAP Body.

Returns:Detail

detail element of the SOAP fault

See Also
javax.xml.soap.Detail
getFaultActorback to summary
public String getFaultActor()

Gets the faultactor element. The faultactor element provides information about which SOAP node on the SOAP message path caused the fault to happen. It indicates the source of the fault.

Returns:String

faultactor element of the SOAP fault

getFaultCodeback to summary
public QName getFaultCode()

Gets the faultcode element. The faultcode element provides an algorithmic mechanism for identifying the fault. SOAP defines a small set of SOAP fault codes covering basic SOAP faults.

Returns:QName

QName of the faultcode element

getFaultStringback to summary
public String getFaultString()

Gets the faultstring element. The faultstring provides a human-readable description of the SOAP fault and is not intended for algorithmic processing.

Returns:String

faultstring element of the SOAP fault