Add custom exception MDInvalidColorCode

This commit is contained in:
Joshua Ramon Enslin 2021-01-28 21:47:13 +01:00
parent 4992011939
commit 231a9d48a4
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,19 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown in case a color code is not valid.
*/
final class MDInvalidColorCode extends MDgenericInvalidInputsException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
$errorMsg = 'Input color code is invalid';
return $errorMsg;
}
}