Home / Type/ onErrorHookHandler Type — fastify Architecture

onErrorHookHandler Type — fastify Architecture

Architecture documentation for the onErrorHookHandler type/interface in hooks.d.ts from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  00e6930d_124f_e875_7b93_ace05c79a6a5["onErrorHookHandler"]
  f0d1ac66_cb60_3d2a_ebcc_1faa11c21aad["hooks.d.ts"]
  00e6930d_124f_e875_7b93_ace05c79a6a5 -->|defined in| f0d1ac66_cb60_3d2a_ebcc_1faa11c21aad
  style 00e6930d_124f_e875_7b93_ace05c79a6a5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

types/hooks.d.ts lines 504–522

export interface onErrorHookHandler<
  RawServer extends RawServerBase = RawServerDefault,
  RawRequest extends RawRequestDefaultExpression<RawServer> = RawRequestDefaultExpression<RawServer>,
  RawReply extends RawReplyDefaultExpression<RawServer> = RawReplyDefaultExpression<RawServer>,
  RouteGeneric extends RouteGenericInterface = RouteGenericInterface,
  ContextConfig = ContextConfigDefault,
  TError extends Error = FastifyError,
  SchemaCompiler extends FastifySchema = FastifySchema,
  TypeProvider extends FastifyTypeProvider = FastifyTypeProviderDefault,
  Logger extends FastifyBaseLogger = FastifyBaseLogger
> {
  (
    this: FastifyInstance<RawServer, RawRequest, RawReply, Logger, TypeProvider>,
    request: FastifyRequest<RouteGeneric, RawServer, RawRequest, SchemaCompiler, TypeProvider, ContextConfig, Logger>,
    reply: FastifyReply<RouteGeneric, RawServer, RawRequest, RawReply, ContextConfig, SchemaCompiler, TypeProvider>,
    error: TError,
    done: () => void
  ): void;
}

Defined In

Frequently Asked Questions

What is the onErrorHookHandler type?
onErrorHookHandler is a type/interface in the fastify codebase, defined in types/hooks.d.ts.
Where is onErrorHookHandler defined?
onErrorHookHandler is defined in types/hooks.d.ts at line 504.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free