diff --git a/lib/src/exceptions.dart b/lib/src/exceptions.dart new file mode 100644 index 0000000..96cd0ee --- /dev/null +++ b/lib/src/exceptions.dart @@ -0,0 +1,22 @@ +// Copyright (c) 2020 +// Author: Hugo Pointcheval + +class KeyException implements Exception { + String error; + KeyException(this.error); +} + +class EncryptionException implements Exception { + String error; + EncryptionException(this.error); +} + +class DecryptionException implements Exception { + String error; + DecryptionException(this.error); +} + +class NotImplementedException implements Exception { + String error; + NotImplementedException(this.error); +}