Class SoapFaultException

All Implemented Interfaces:
Serializable

public class SoapFaultException extends AppException
Exception containing a SOAP fault and its information.
Since:
6.0.1
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • SoapFaultException

      public SoapFaultException(InputStream soapResponse, String soapRequest) throws IOException
      For internal use only, made public for .NET test cases. Do not use!
      Parameters:
      soapResponse - The soap envelope response, may not be null.
      soapRequest - The soap request, may be null.
      Throws:
      XmlException - Is thrown when parsing failed extract the soap fault.
      IOException - for IO errors
  • Method Details

    • getFaultCode

      public QName getFaultCode()
      This method returns the SOAP fault code.
      Returns:
      Code (may be null)
    • getFaultString

      public String getFaultString()
      This method returns the SOAP fault string.
      Returns:
      String (may be null)
    • getFaultActor

      public String getFaultActor()
      This method returns the SOAP fault actor.
      Returns:
      Actor (may be null)
    • getDetail

      public String getDetail()
      This method returns the SOAP fault detail. Xml in the detail message will be ignored.
      Returns:
      Detail (may be null)
    • getSoapRequest

      public String getSoapRequest()
      This method returns the soap request that caused this exception.
      Returns:
      The complete soap request that caused this exception, may be null.
    • getSoapResponse

      public String getSoapResponse()
      This method returns the soap response that caused this exception.
      Returns:
      The complete soap response that caused this exception, never null.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable