Add exceptions

This commit is contained in:
Hugo Pointcheval 2020-04-15 17:42:24 +02:00
parent b34f5e6526
commit 00400274cb

22
lib/src/exceptions.dart Normal file
View File

@ -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);
}