Add new exception MDInputTooLongException for overly long input strings

This commit is contained in:
Joshua Ramon Enslin 2022-05-15 17:45:33 +02:00
parent 6326a6dacf
commit 591a7bacc5
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,20 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case of inputs longer than the allowed length of a
* field's contents in the DB.
*/
final class MDInputTooLongException extends MDgenericInvalidInputsException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
$errorMsg = 'Input string is too long';
return $errorMsg;
}
}