Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pkcs11Error

Exception with the name and value of PKCS#11 return value

Hierarchy

Index

Constructors

  • new Pkcs11Error(message?: string, code?: number, method?: string): Pkcs11Error
  • Initialize new instance of Pkcs11Error

    Parameters

    • Optional message: string

      Error message

    • Optional code: number

      PKCS#11 result value

    • Optional method: string

      The name of PKCS#11 method

    Returns Pkcs11Error

Properties

code: number

PKCS#11 result value. Default is 0

message: string
method: string

Native function name. Default is empty string

name: string
nativeStack: string

Native library call stack. Default is empty string

stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc