add PassStoreFileException class

This commit is contained in:
2025-11-24 02:23:44 +03:00
parent 8eedf73e6d
commit 6b90ad615e

View File

@@ -0,0 +1,17 @@
using System;
namespace KeyKeeper.PasswordStore;
public class PassStoreFileException : Exception
{
public static readonly PassStoreFileException UnexpectedEndOfFile = new("unexpected EOF");
public static readonly PassStoreFileException IncorrectMagicNumber = new("incorrect signature (magic number)");
public static readonly PassStoreFileException UnsupportedVersion = new("unsupported format version");
public static readonly PassStoreFileException InvalidCryptoHeader = new("invalid encryption header");
public string Description { get; }
public PassStoreFileException(string description)
{
Description = description;
}
}