diff --git a/exceptions/updates/MDPgpKeyIsInvalid.php b/exceptions/updates/MDPgpKeyIsInvalid.php new file mode 100644 index 0000000..2599b97 --- /dev/null +++ b/exceptions/updates/MDPgpKeyIsInvalid.php @@ -0,0 +1,26 @@ + + */ +declare(strict_types = 1); + +/** + * Custom exception class to be raised if a submitted PGP key is not valid. + */ +final class MDPgpKeyIsInvalid extends MDgenericInvalidInputsException { + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + return 'PGP key is invalid. ' . $this->getMessage(); + + } +}