SoapFaultException Class

com.bea.jws
SoapFaultException Class

public class SoapFaultException

    extends RuntimeException

The SoapFaultException is a wrapper exception that enables the web service developer to generate a specific SOAP fault.

Related Topics

SoapFault


Hierarchy
Object
  Throwable
    Exception
      RuntimeException
        SoapFaultException
All Implemented Interfaces

Serializable

Field Summary

public static final int
FAULT_SOAP11
int
public static final int
FAULT_SOAP12
int
public static final int
FAULT_UNKNOWN
int
 

Constructor Summary

SoapFaultException(XmlObject detailContent, String s)

Assumes the user just wants to generate the fault document defined in the WSDL for the current operation.
SoapFaultException(XmlObject xmlObj)

User wants to own the shape of the fault.
SoapFaultException(XmlObject detailContent)

Assumes the user just wants to generate the fault document defined in the WSDL for the current operation.
 

Method Summary

public XmlObject[]
getDetail()
public XmlObject
getFault()
public boolean
hasDetail()
public boolean
hasFault()
public boolean
isCausedBySender()
public void
setCausedBySender(boolean senderIsCause)
Settes the code in the SoapFault: for Soap 1.2 Sender/Receiver, for Soap 1.1 Client/Server
public int
soapFaultVersion()
 
Methods from  java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

FAULT_SOAP11

public static final int FAULT_SOAP11


FAULT_SOAP12

public static final int FAULT_SOAP12


FAULT_UNKNOWN

public static final int FAULT_UNKNOWN

 

Constructor Detail

SoapFaultException

public SoapFaultException(XmlObject detailContent, 
                          String s)
Assumes the user just wants to generate the fault document defined in the WSDL for the current operation. This form defaults to server/receiver as the cause.

SoapFaultException

public SoapFaultException(XmlObject xmlObj)
User wants to own the shape of the fault. The user has to know which version of the envelop to use.

Related Topics

Protocol


SoapFaultException

public SoapFaultException(XmlObject[] detailContent)
Assumes the user just wants to generate the fault document defined in the WSDL for the current operation. This form defaults to server/receiver as the cause.
 

Method Detail

getDetail() Method

public XmlObject[] getDetail()

Returns

detail

getFault() Method

public XmlObject getFault()

Returns

fault

hasDetail() Method

public boolean hasDetail()

Returns

whether the fault contains detail

hasFault() Method

public boolean hasFault()

Returns

whether this holds a fault

isCausedBySender() Method

public boolean isCausedBySender()

Returns

senderIsCause

setCausedBySender(boolean) Method

public void setCausedBySender(boolean senderIsCause)
Settes the code in the SoapFault: for Soap 1.2 Sender/Receiver, for Soap 1.1 Client/Server

Parameters

senderIsCause
if true: Sender (Client for Soap 1.1) else: Receiver (Server for Soap 1.1)

soapFaultVersion() Method

public int soapFaultVersion()

Returns

soapFaultVersion