Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ErrorHandler

Describes a type that can handle errors for a service endpoint.

Hierarchy

  • ErrorHandler

Index

Methods

Methods

handleError

  • Handles an error.

    Parameters

    • err: Error

      The error.

    • request: RequestContext

      The request context.

    • next: Callback

      Callback to call the next error handler. If the error handler sends a reply then next does not need to be called. If next is called, it must be called with an Error object. However, it does not eed to call next with the same Error it was passed. For example, it may choose to transform a generic Error into a FaultError.

    Returns void

Generated using TypeDoc