Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

Latest commit

 

History

History
86 lines (47 loc) · 1.57 KB

File metadata and controls

86 lines (47 loc) · 1.57 KB

@panenco/papi / Exports / ErrorBase

Class: ErrorBase

Base for API Error

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new ErrorBase(code, reason, message, payload?)

Parameters

Name Type
code StatusCode
reason string
message string
payload? object

Overrides

Error.constructor

Defined in

contracts/errors/errorBase.error.ts:13

Properties

code

code: number

Defined in

contracts/errors/errorBase.error.ts:9


reason

reason: string

Defined in

contracts/errors/errorBase.error.ts:10


payload

Optional payload: object

Defined in

contracts/errors/errorBase.error.ts:11