Skip to main content

Class: LunaSecError

Hierarchy

  • Error

    โ†ณ LunaSecError

Implements

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

.yarn/virtual/@types-node-virtual-66baecc941/0/cache/@types-node-npm-14.18.12-61f7082f71-8a0273caa0.zip/node_modules/@types/node/globals.d.ts:4


toJSON

โ–ธ toJSON(): LunaSecErrorProperties

Returns

LunaSecErrorProperties

Defined in

lunadefend/js/sdks/packages/isomorphic-common/build/main/lunasec-error.d.ts:17


toString

โ–ธ toString(): string

Returns

string

Defined in

lunadefend/js/sdks/packages/isomorphic-common/build/main/lunasec-error.d.ts:18

Properties

stackTraceLimit

โ–ช Static stackTraceLimit: number

Inherited from

Error.stackTraceLimit

Defined in

.yarn/virtual/@types-node-virtual-66baecc941/0/cache/@types-node-npm-14.18.12-61f7082f71-8a0273caa0.zip/node_modules/@types/node/globals.d.ts:13


name

โ€ข name: string

A machine readable name of the error

Implementation of

LunaSecErrorProperties.name

Overrides

Error.name

Defined in

lunadefend/js/sdks/packages/isomorphic-common/build/main/lunasec-error.d.ts:10


message

โ€ข message: string

A human readable error message, suitable to be displayed to the end user

Implementation of

LunaSecErrorProperties.message

Overrides

Error.message

Defined in

lunadefend/js/sdks/packages/isomorphic-common/build/main/lunasec-error.d.ts:11


code

โ€ข code: string

An error code, typically corresponding to an HTTP response code

Implementation of

LunaSecErrorProperties.code

Defined in

lunadefend/js/sdks/packages/isomorphic-common/build/main/lunasec-error.d.ts:12


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

Inherited from

Error.prepareStackTrace

Defined in

.yarn/virtual/@types-node-virtual-66baecc941/0/cache/@types-node-npm-14.18.12-61f7082f71-8a0273caa0.zip/node_modules/@types/node/globals.d.ts:11


stack

โ€ข Optional stack: string

Inherited from

Error.stack

Defined in

.yarn/cache/typescript-patch-5ae9902a5e-858c61fa63.zip/node_modules/typescript/lib/lib.es5.d.ts:1024

Constructors

constructor

โ€ข new LunaSecError(e)

Parameters

NameTypeDescription
eError | LunaSecErrorPropertiesAn existing Error object to wrap or an object of new properties to build an error from

Overrides

Error.constructor

Defined in

lunadefend/js/sdks/packages/isomorphic-common/build/main/lunasec-error.d.ts:16