Class: IncompatibleKeyVersionError
Defined in: errors.ts:213
A key was written by a newer, unsupported format version.
Extends
Constructors
Constructor
new IncompatibleKeyVersionError(
message):IncompatibleKeyVersionError
Defined in: errors.ts:214
Parameters
message
string
Returns
IncompatibleKeyVersionError
Overrides
SerializationError.constructor
Properties
code
readonlycode:QsErrorCode
Defined in: errors.ts:63
Stable machine-readable identifier, e.g. QS_DECRYPTION_FAILED.
Inherited from
hint
readonlyhint:string
Defined in: errors.ts:65
One-line, static suggestion for fixing the problem. Contains no sensitive data.
Inherited from
Methods
toJSON()
toJSON():
object
Defined in: errors.ts:85
JSON-safe description, useful for logs and for coding agents.
Returns
object
code
code:
QsErrorCode
hint
hint:
string
message
message:
string
name
name:
string
Inherited from
is()
staticis(e):e is QuantumSafeError
Defined in: errors.ts:80
True for errors from any copy of this library. Prefer this to instanceof when an application might load both the ESM and the CommonJS build (each has its own class objects).
Parameters
e
unknown
Returns
e is QuantumSafeError