Interface ErrorRoute<A>

Type Parameters:
A - the resource type
All Superinterfaces:
Route<A>

public interface ErrorRoute<A> extends Route<A>

An error route.

This is used to define route based on the error specified in an input. For instance, in order to resolve an handler for an error exchange with a NotFoundException error, an error route must be defined with NotFoundException error type targeting a handler able to handle NotFoundException.

Since:
1.12
Author:
Jeremy Kuhn
See Also:
  • Method Details

    • getErrorType

      Class<? extends Throwable> getErrorType()

      Returns an error type.

      Returns:
      an error type or null