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

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

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

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


stack

Optional stack: string

Inherited from

Error.stack

Defined in

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