mirror of
https://github.com/KeyKeeperApp/KeyKeeper.git
synced 2026-05-05 14:26:30 +03:00
add PassStoreFileException class
This commit is contained in:
17
src/KeyKeeper/PasswordStore/PassStoreFileException.cs
Normal file
17
src/KeyKeeper/PasswordStore/PassStoreFileException.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user