Class WebserviceClientErrorHandler

java.lang.Object
com.webmethods.caf.faces.data.error.BaseErrorHandler
com.webmethods.caf.faces.data.error.WebserviceClientErrorHandler
All Implemented Interfaces:
IErrorHandler
Direct Known Subclasses:
WSClientInnerErrHandler

public class WebserviceClientErrorHandler extends BaseErrorHandler
Specialization of the error handler for Glue web service clients. Additional features include parsing of SOAP-FAULTS from web service exception and ability to handle infrastructure (connection) and SOAP_FAULTS errors separately.
  • Field Details

    • ANY_ERROR

      public static final String ANY_ERROR
      Identifies that any web service client error should be handled
      See Also:
    • CONNECTION_ERROR

      public static final String CONNECTION_ERROR
      Identifies that only connectivity and authentication web service errors should be handled
      See Also:
    • SOAP_FAULT

      public static final String SOAP_FAULT
      Identifies that only soap-fault web service client errors should be handled
      See Also:
    • errorType

      protected String errorType
  • Constructor Details

    • WebserviceClientErrorHandler

      public WebserviceClientErrorHandler()
  • Method Details

    • getErrorType

      public String getErrorType()
      Web service error type to be handled.
      Returns:
      The web service error type.
    • setErrorType

      public void setErrorType(String errorType)
      Sets value for web service error type to be handled.
      Parameters:
      errorType - Set the error type using ANY_ERROR, CONNECTION_ERROR, SOAP_FAULT
    • parseError

      protected boolean parseError()
      Set the Summary and Details from the exception's cause. For a SOAP_FAULT, also parse the soap fault.
      Overrides:
      parseError in class BaseErrorHandler
      Returns:
      True if error was successfully parsed. Otherwise false.
      See Also: