UNPKG

@trust/keyto

Version:

A utility for translating cryptographic keys between representations

31 lines (27 loc) 532 B
'use strict' /** * InvalidOperationError * @ignore */ class InvalidOperationError extends Error { /** * constructor * * @class InvalidOperationError * * @description * Thrown when an operation has not been implemented yet * * @throws "This operation is not supported for this key type" * * @return {InvalidOperationError} */ constructor (msg) { super(msg || 'This operation is not supported for this key type') } } /** * Export * @ignore */ module.exports = InvalidOperationError