From 80fd16443968efebd373f1b0403f75bd48168064 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Thu, 26 May 2022 18:01:20 +0200 Subject: [PATCH] Add MDInvalidEmptyInputException --- .../generic/MDInvalidEmptyInputException.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 exceptions/generic/MDInvalidEmptyInputException.php diff --git a/exceptions/generic/MDInvalidEmptyInputException.php b/exceptions/generic/MDInvalidEmptyInputException.php new file mode 100644 index 0000000..0eacd0d --- /dev/null +++ b/exceptions/generic/MDInvalidEmptyInputException.php @@ -0,0 +1,26 @@ + + */ +declare(strict_types = 1); + +/** + * This file contains an exception class for usage of fully empty inputs that should not be empty. + */ +final class MDInvalidEmptyInputException extends MDgenericInvalidInputsException { + /** + * Error message. + * + * @return string + */ + public function errorMessage() { + //error message + $errorMsg = 'A value needs to be provided: ' . $this->getMessage(); + return $errorMsg; + + } +}