public class SoapFaultMappingExceptionResolver extends AbstractSoapFaultDefinitionExceptionResolver
exceptionMappings property, the format of which is documented in SoapFaultDefinitionEditor.logger| Constructor and Description |
|---|
SoapFaultMappingExceptionResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDepth(String exceptionMapping,
Exception ex)
Return the depth to the superclass matching.
|
protected SoapFaultDefinition |
getFaultDefinition(Object endpoint,
Exception ex)
Template method that returns the
SoapFaultDefinition for the given exception. |
void |
setExceptionMappings(Properties mappings)
Set the mappings between exception class names and SOAP Faults.
|
customizeFault, resolveExceptionInternal, setDefaultFaultbuildLogMessage, getOrder, logException, resolveException, setMappedEndpoints, setOrder, setWarnLogCategorypublic void setExceptionMappings(Properties mappings)
The values of the given properties object should use the format described in
SoapFaultDefinitionEditor.
Follows the same matching algorithm as SimpleMappingExceptionResolver.
mappings - exception patterns (can also be fully qualified class names) as keys, fault definition texts as
valuesSoapFaultDefinitionEditorprotected SoapFaultDefinition getFaultDefinition(Object endpoint, Exception ex)
AbstractSoapFaultDefinitionExceptionResolverSoapFaultDefinition for the given exception.getFaultDefinition in class AbstractSoapFaultDefinitionExceptionResolverendpoint - the executed endpoint, or null if none chosen at the time of the exceptionex - the exception to be handlednull if none is found.protected int getDepth(String exceptionMapping, Exception ex)
0 means ex matches exactly. Returns -1 if
there's no match. Otherwise, returns depth. Lowest depth wins.
Follows the same algorithm as RollbackRuleAttribute, and SimpleMappingExceptionResolver