SOAPRequestException

public class SOAPRequestException extends hk.hku.cecid.piazza.commons.GenericException

SOAPRequestException represents all kinds of exception related to a SOAP request or its process.

Author:Hugo Y. K. Lam

Constructors

SOAPRequestException

public SOAPRequestException()

Creates a new instance of SOAPRequestException.

SOAPRequestException

public SOAPRequestException(String message)

Creates a new instance of SOAPRequestException.

Parameters:
  • message – the error message.

SOAPRequestException

public SOAPRequestException(Throwable cause)

Creates a new instance of SOAPRequestException.

Parameters:
  • cause – the cause of this exception.

SOAPRequestException

public SOAPRequestException(String message, Throwable cause)

Creates a new instance of SOAPRequestException.

Parameters:
  • message – the error message.
  • cause – the cause of this exception.

Methods

getSOAPFault

public SOAPFaultException getSOAPFault()

Gets the SOAP fault exception which caused this exception.

Returns:the SOAP fault exception which caused this exception or null if there is none.

isSOAPFault

public boolean isSOAPFault()

Checks if this exception is caused by a SOAP fault exception.

Returns:true if this exception is caused by a SOAP fault exception.