Constructor Detail

SimpleMappingExceptionResolver

Method Detail

setExceptionMappings

Set the mappings between exception class names and error view names.
The exception class name can be a substring, with no wildcard support
at present. A value of "PortletException" would match
javax.portet.PortletException and subclasses, for example.

NB: Consider carefully how specific the pattern is, and whether
to include package information (which isn't mandatory). For example,
"Exception" will match nearly anything, and will probably hide other rules.
"java.lang.Exception" would be correct if "Exception" was meant to define
a rule for all checked exceptions. With more unusual exception names such
as "BaseBusinessException" there's no need to use a FQN.

Follows the same matching algorithm as RuleBasedTransactionAttribute
and RollbackRuleAttribute.