Interface CommandExceptionResolver
- All Known Implementing Classes:
CommandParserExceptionResolver
,MethodCommandExceptionResolver
public interface CommandExceptionResolver
Interface to be implemented by objects that can resolve exceptions thrown
during command processing, in the typical case error response. Implementors
are typically registered as beans in the application context or directly
with command.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default precedence related use ofOrdered
andOrder
. -
Method Summary
Modifier and TypeMethodDescriptionTry to resolve the given exception that got thrown during command processing.
-
Field Details
-
DEFAULT_PRECEDENCE
static final int DEFAULT_PRECEDENCEDefault precedence related use ofOrdered
andOrder
.- See Also:
-
-
Method Details
-
resolve
Try to resolve the given exception that got thrown during command processing.- Parameters:
ex
- the exception- Returns:
- a corresponding
HandlingResult
framework to handle, ornull
for default processing in the resolution chain
-