

const require_KeyManagementError = require('./KeyManagementError.js');

//#region src/modules/kms/error/KeyManagementKeyNotFoundError.ts
var KeyManagementKeyNotFoundError = class extends require_KeyManagementError.KeyManagementError {
	constructor(keyId, backends, extraMessage) {
		const base = `Key with key id '${keyId}' not found in backend`;
		const withBackends = backends.length > 1 ? `${base}s ${backends.map((b) => `'${b}'`).join(", ")}` : `${base} '${backends[0]}'`;
		const withExtraMessage = extraMessage ? `${withBackends}. ${extraMessage}` : withBackends;
		super(withExtraMessage);
	}
};

//#endregion
exports.KeyManagementKeyNotFoundError = KeyManagementKeyNotFoundError;