MDErrorReporter/exceptions/generic/MDParseException.php

19 lines
379 B
PHP
Raw Permalink Normal View History

2023-07-26 00:41:04 +02:00
<?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();
}
}