Add specific exception in case of GPG encryption failing
This commit is contained in:
18
exceptions/MDMailerEncryptionFailedException.php
Normal file
18
exceptions/MDMailerEncryptionFailedException.php
Normal file
@ -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';
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user