21 lines
436 B
PHP
21 lines
436 B
PHP
|
<?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;
|
||
|
|
||
|
}
|
||
|
}
|