From 00400274cb1738122c543cdf77f490fe52ff6ec0 Mon Sep 17 00:00:00 2001 From: Hugo Pointcheval Date: Wed, 15 Apr 2020 17:42:24 +0200 Subject: [PATCH] Add exceptions --- lib/src/exceptions.dart | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/src/exceptions.dart 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); +}