/
raiden
/
obsidian-git-encrypt
Обзор
Документация
Войти
/
raiden
/
obsidian-git-encrypt
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/crypto/errors.ts
28 строк
767 B
Robert Kuzhin
feat: implement encrypted vault crypto core
09 авг 2026, 09:55
09 авг 2026, 09:55
54bad50
Код
Авторство
О чём код?
export class CryptoCoreError extends Error { public constructor(message: string, options?: ErrorOptions) { super(message, options); this.name = new.target.name; } } export class AuthenticationError extends CryptoCoreError { public constructor(options?: ErrorOptions) { super("Authentication failed", options); } } export class ObjectAuthenticationError extends CryptoCoreError { public constructor(options?: ErrorOptions) { super("Encrypted object authentication failed", options); } } export class ConfigValidationError extends CryptoCoreError {} export class EnvelopeError extends CryptoCoreError {} export class DestroyedKeyError extends CryptoCoreError { public constructor() { super("Key handle has been destroyed"); } }