Skip to content

griddy-sdk


griddy-sdk / AfterErrorHook

Interface: AfterErrorHook

Defined in: src/griddy/nfl/_hooks/types.ts:96

Hook called after an error response.

Methods

afterError()

afterError(ctx, response, error): AfterErrorResult | Promise\<AfterErrorResult>

Defined in: src/griddy/nfl/_hooks/types.ts:104

Called after an error response is received.

Parameters

ctx

AfterErrorContext

The hook context

response

Response

The error response, if any

error

Error

The error that occurred, if any

Returns

AfterErrorResult | Promise\<AfterErrorResult>

Tuple of (response, error) - either can be modified or null