Skip to main content

TruBudgetError

Api Code Documentation / Exports / error / TruBudgetError

error.TruBudgetError

Class representing custom TruBudget errors

Hierarchy

  • Error

    TruBudgetError

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TruBudgetError(err)

Parameters

NameType
errTruBudgetErrorType

Overrides

Error.constructor

Defined in

src/error.ts:135

Properties

address

address: undefined = undefined

Defined in

src/error.ts:121


badKeys

badKeys: undefined = undefined

Defined in

src/error.ts:113


contentType

contentType: undefined = undefined

Defined in

src/error.ts:131


event

event: undefined = undefined

Defined in

src/error.ts:129


filePath

filePath: undefined = undefined

Defined in

src/error.ts:117


kind

kind: undefined = undefined

Defined in

src/error.ts:133


message

message: string

Inherited from

Error.message

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1068


name

name: string

Inherited from

Error.name

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1067


projectId

projectId: undefined = undefined

Defined in

src/error.ts:127


stack

Optional stack: string

Inherited from

Error.stack

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1069


subprojectId

subprojectId: undefined = undefined

Defined in

src/error.ts:125


targetId

targetId: undefined = undefined

Defined in

src/error.ts:123


userId

userId: undefined = undefined

Defined in

src/error.ts:119


what

what: undefined = undefined

Defined in

src/error.ts:115


prepareStackTrace

Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters
NameType
errError
stackTracesCallSite[]
Returns

any

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

Error.prepareStackTrace

Defined in

node_modules/@types/node/globals.d.ts:11


stackTraceLimit

Static stackTraceLimit: number

Inherited from

Error.stackTraceLimit

Defined in

node_modules/@types/node/globals.d.ts:13

Methods

captureStackTrace

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace

Defined in

node_modules/@types/node/globals.d.ts:4