Class: LunaSecError
Hierarchy
Error
↳
LunaSecError
Implements
Methods
captureStackTrace
▸ Static
captureStackTrace(targetObject
, constructorOpt?
): void
Create .stack property on a target object
Parameters
Name | Type |
---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
node_modules/@types/node/globals.d.ts:4
toJSON
▸ toJSON(): LunaSecErrorProperties
Returns
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
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
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
Name | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
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
Name | Type | Description |
---|---|---|
e | Error | LunaSecErrorProperties | An 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