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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Default precedence related use of Ordered and Order.
  • Method Summary

    Modifier and Type
    Method
    Description
    Try to resolve the given exception that got thrown during command processing.
  • Field Details

    • DEFAULT_PRECEDENCE

      static final int DEFAULT_PRECEDENCE
      Default precedence related use of Ordered and Order.
      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, or null for default processing in the resolution chain