Skip to main content

Interface: MiddlewareErrorContext

@sapphire/plugin-api.MiddlewareErrorContext

The context sent in the error events.

since 1.2.0

Properties

match

match: RouteMatch

The route match.

since 1.2.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:251


request

request: ApiRequest

The erroneous request.

since 1.2.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:239


response

response: ApiResponse

The server's response.

since 1.2.0

Defined in

projects/plugins/packages/api/src/lib/structures/http/Server.ts:245