Interface ErrorRoute.Extractor<A,B extends ErrorRoute<A>,C extends ErrorRoute.Extractor<A,B,C>>

Type Parameters:
A - the resource type
B - the error route type
C - the error route extractor
All Superinterfaces:
RouteExtractor<A,B>
Enclosing interface:
ErrorRoute<A>

public static interface ErrorRoute.Extractor<A,B extends ErrorRoute<A>,C extends ErrorRoute.Extractor<A,B,C>> extends RouteExtractor<A,B>

An error route extractor.

Since:
1.12
Author:
Jeremy Kuhn
  • Method Summary

    Modifier and Type
    Method
    Description
    errorType(Class<? extends Throwable> errorType)
    Sets the extractor to extract routes defined with the specified error type.

    Methods inherited from interface io.inverno.mod.http.base.router.RouteExtractor

    getRoutes, set
  • Method Details

    • errorType

      C errorType(Class<? extends Throwable> errorType)

      Sets the extractor to extract routes defined with the specified error type.

      Parameters:
      errorType - an error type
      Returns:
      a route extractor