Add exceptions
This commit is contained in:
parent
b34f5e6526
commit
00400274cb
22
lib/src/exceptions.dart
Normal file
22
lib/src/exceptions.dart
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user