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