Add specific exception in case of GPG encryption failing

This commit is contained in:
jrenslin committed 2023-11-21 01:44:19 +01:00
1 parent 900c2733e5
commit bc998fbfa0
2 files changed
+26 -3

No files matched your search

@@ -0,0 +1,18 @@
<?PHP
declare(strict_types = 1);
/**
* Exception to be thrown
*/
final class MDMailerEncryptionFailedException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'GPG encryption failed';
}
}