View Source JetExt.Absinthe.ErrorHandler behaviour (jet_ext v0.2.0)

Absinthe error handlers can handle more data types as an error when works with JetExt.Absinthe.Middleware.HandleError.

Summary

Callbacks

This is the main callback of an error handler.

Callbacks

@callback handle(error :: term()) :: {:ok, term()} | :error

This is the main callback of an error handler.

It accepts any type of error and returns a {:ok, term} tuple if the error can be handled, otherwise it returns :error.