Add generic exception MDParseException

This commit is contained in:
Joshua Ramon Enslin 2023-07-26 00:41:04 +02:00
parent cc0cf5b923
commit a34ae51a0e
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -0,0 +1,18 @@
<?PHP
declare(strict_types = 1);
/**
* Custom exception class to be thrown when import data could not be parsed.
*/
final class MDParseException extends MDExpectedException {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'Failed to parse input: ' . $this->getMessage();
}
}