SOAPFaultException

public class SOAPFaultException extends SOAPRequestException

SOAPFaultException represents a SOAP fault in a SOAP request.

Author:Hugo Y. K. Lam

Fields

SOAP_FAULT_CLIENT

public static String SOAP_FAULT_CLIENT

SOAP_FAULT_MUST_UNDERSTAND

public static String SOAP_FAULT_MUST_UNDERSTAND

SOAP_FAULT_SERVER

public static String SOAP_FAULT_SERVER

SOAP_FAULT_VERSION_MISMATCH

public static String SOAP_FAULT_VERSION_MISMATCH

Constructors

SOAPFaultException

public SOAPFaultException(String code, String message)

Creates a new instance of SOAPFaultException.

Parameters:
  • code – the fault code.
  • message – the fault string.

SOAPFaultException

public SOAPFaultException(String code, String message, String actor)

Creates a new instance of SOAPFaultException.

Parameters:
  • code – the fault code.
  • message – the fault string.
  • actor – the fault actor.

SOAPFaultException

public SOAPFaultException(String code, String message, Throwable cause)

Creates a new instance of SOAPFaultException.

Parameters:
  • code – the fault code.
  • message – the fault string.
  • cause – the cause of this exception.

SOAPFaultException

public SOAPFaultException(String code, String message, String actor, Throwable cause)

Creates a new instance of SOAPFaultException.

Parameters:
  • code – the fault code.
  • message – the fault string.
  • actor – the fault actor.
  • cause – the cause of this exception.

Methods

addDetailEntry

public void addDetailEntry(Name name, Object message)

Adds a SOAP fault detail entry.

Parameters:
  • name – the entry name.
  • message – the message of the detail entry.

getDetailEntryNames

public Iterator getDetailEntryNames()

Gets the SOAP fault detail entry names.

Returns:the SOAP fault detail entry Name objects.

getDetailEntryValue

public Object getDetailEntryValue(Name name)

Gets the SOAP fault detail entry value with the specified name.

Returns:the SOAP fault detail entry value.

getFaultActor

public String getFaultActor()

Gets the fault actor.

Returns:the fault actor.

getFaultCode

public String getFaultCode()

Gets the fault code.

Returns:the fault code.

getFaultString

public String getFaultString()

Gets the fault string.

Returns:the fault string.

hasDetailEntries

public boolean hasDetailEntries()

Checks if there are any SOAP fault detail entries.

Returns:true if there are any SOAP fault detail entries.

init

protected void init(String code, String message, String actor)

Initializes this SOAP fault exception.

Parameters:
  • code – the fault code.
  • message – the fault string.
  • actor – the fault actor.