From 498e362ab97be495d246d27be8223e09097dc089 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Tue, 15 Aug 2023 12:12:38 +0200 Subject: [PATCH] Add new exception MDBlacklistedInputException --- .../updates/MDBlacklistedInputException.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 exceptions/updates/MDBlacklistedInputException.php diff --git a/exceptions/updates/MDBlacklistedInputException.php b/exceptions/updates/MDBlacklistedInputException.php new file mode 100644 index 0000000..15a3ec6 --- /dev/null +++ b/exceptions/updates/MDBlacklistedInputException.php @@ -0,0 +1,26 @@ + + */ +declare(strict_types = 1); + +/** + * Exception class to be raised if a blacklisted input is resubmitted. + */ +final class MDBlacklistedInputException extends MDgenericInvalidInputsException { + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + return 'PGP key is invalid. ' . $this->getMessage(); + + } +}