From 9ea2b5247e0608dc15fd49f02913ec9c05ae5d88 Mon Sep 17 00:00:00 2001 From: Hugo Pointcheval Date: Sat, 18 Apr 2020 15:25:30 +0200 Subject: [PATCH] Move exception in public space --- lib/exceptions.dart | 22 ++++++++++++++++++++++ lib/src/exceptions.dart | 27 --------------------------- 2 files changed, 22 insertions(+), 27 deletions(-) create mode 100644 lib/exceptions.dart delete mode 100644 lib/src/exceptions.dart 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); -}