Class Pkcs11Error

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

Hierarchy (view full)

Constructors

  • Initialize new instance of Pkcs11Error

    Parameters

    • Optionalmessage: string

      Error message

    • Optionalcode: number

      PKCS#11 result value

    • Optionalmethod: 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)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void