Skip to content

qanary-component-core/middlewares/error/error.model

This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.

qanary-component-core/middlewares/error/error.model

Section titled “qanary-component-core/middlewares/error/error.model”
  • Package: @leipzigtreechat/qanary-component-core
  • Source file: packages/qanary-component-core/src/middlewares/error/error.model.ts

An error response as it can be processed by the Qanary pipeline

class ErrorResponse

An error response as it can be processed by the Qanary pipeline

Properties

  • timestamp (string): A timestamp when the error has occurred
  • status (number): The status code of the error
  • error (string): The error message
  • path (string): The endpoint where error has occurred Methods
  • constructor(options: QanaryComponentApi.IQanaryComponentError): The function to instantiate the object
  • from(err: Error, req: Request): void: The factory method of the object Defined at: line 7