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(); + + } +}