Add MDInvalidEmptyInputException

This commit is contained in:
Joshua Ramon Enslin 2022-05-26 18:01:20 +02:00
parent 591a7bacc5
commit 80fd164439
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,26 @@
<?PHP
/**
* This file contains an exception class for usage of fully empty inputs that should not be empty.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
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;
}
}