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
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Identifies that any web service client error should be handledstatic final String
Identifies that only connectivity and authentication web service errors should be handledprotected String
static final String
Identifies that only soap-fault web service client errors should be handledFields inherited from class com.webmethods.caf.faces.data.error.BaseErrorHandler
action, ACTION_NONE, ACTION_REDIRECT, ACTION_REPORT_DETAILS, ACTION_REPORT_SUMMARY, ACTION_REPORT_SUMMARY_DETAILS, chainHandler, details, errorPage, exception, parsedDetails, parsedSummary, severity, SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN, source, summary, viewID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWeb service error type to be handled.protected boolean
Set the Summary and Details from the exception's cause.void
setErrorType
(String errorType) Sets value for web service error type to be handled.Methods inherited from class com.webmethods.caf.faces.data.error.BaseErrorHandler
formatMessage, getAction, getChainHandler, getDetails, getErrorPage, getException, getFacesSeverity, getSeverity, getSource, getSummary, gotoPage, handleError, handleError, isHasError, reset, returnBack, setAction, setChainHandler, setDetails, setErrorPage, setSeverity, setSummary
-
Field Details
-
ANY_ERROR
Identifies that any web service client error should be handled- See Also:
-
CONNECTION_ERROR
Identifies that only connectivity and authentication web service errors should be handled- See Also:
-
SOAP_FAULT
Identifies that only soap-fault web service client errors should be handled- See Also:
-
errorType
-
-
Constructor Details
-
WebserviceClientErrorHandler
public WebserviceClientErrorHandler()
-
-
Method Details
-
getErrorType
Web service error type to be handled.- Returns:
- The web service error type.
-
setErrorType
Sets value for web service error type to be handled.- Parameters:
errorType
- Set the error type usingANY_ERROR
,CONNECTION_ERROR
,SOAP_FAULT
-
parseError
protected boolean parseError()Set the Summary and Details from the exception's cause. For aSOAP_FAULT
, also parse the soap fault.- Overrides:
parseError
in classBaseErrorHandler
- Returns:
- True if error was successfully parsed. Otherwise false.
- See Also:
-