setMappedHandlers

Specify the set of handlers that this exception resolver should apply to.
The exception mappings and the default error view will only apply to the specified handlers.

If no handlers and handler classes are set, the exception mappings and the default error
view will apply to all handlers. This means that a specified default error view will be used
as fallback for all exceptions; any further HandlerExceptionResolvers in the chain will be
ignored in this case.

setMappedHandlerClasses

Specify the set of classes that this exception resolver should apply to.
The exception mappings and the default error view will only apply to handlers of the
specified type; the specified types may be interfaces and superclasses of handlers as well.

If no handlers and handler classes are set, the exception mappings and the default error
view will apply to all handlers. This means that a specified default error view will be used
as fallback for all exceptions; any further HandlerExceptionResolvers in the chain will be
ignored in this case.

setWarnLogCategory

public void setWarnLogCategory(java.lang.String loggerName)

Set the log category for warn logging. The name will be passed to the underlying logger
implementation through Commons Logging, getting interpreted as log category according
to the logger's configuration.

doResolveException

Actually resolve the given exception that got thrown during on handler execution,
returning a ModelAndView that represents a specific error page if appropriate.

May be overridden in subclasses, in order to apply specific exception checks.
Note that this template method will be invoked after checking whether this
resolved applies ("mappedHandlers" etc), so an implementation may simply proceed
with its actual exception handling.

Parameters:

request - current HTTP request

response - current HTTP response

handler - the executed handler, or null if none chosen at the time
of the exception (for example, if multipart resolution failed)

ex - the exception that got thrown during handler execution

Returns:

a corresponding ModelAndView to forward to, or null for default processing