diff --git a/lib/exceptions.dart b/lib/exceptions.dart new file mode 100644 index 0000000..b14d965 --- /dev/null +++ b/lib/exceptions.dart @@ -0,0 +1,22 @@ +// Copyright (c) 2020 +// Author: Hugo Pointcheval + +class KeyException implements Exception { + String message; + KeyException(this.message); +} + +class EncryptionException implements Exception { + String message; + EncryptionException(this.message); +} + +class DecryptionException implements Exception { + String message; + DecryptionException(this.message); +} + +class NotImplementedException implements Exception { + String message; + NotImplementedException(this.message); +} diff --git a/lib/src/exceptions.dart b/lib/src/exceptions.dart deleted file mode 100644 index 6e67379..0000000 --- a/lib/src/exceptions.dart +++ /dev/null @@ -1,27 +0,0 @@ -// 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 PlatformException implements Exception { - String error; - PlatformException(this.error); -} - -class NotImplementedException implements Exception { - String error; - NotImplementedException(this.error); -}