MDErrorReporter/exceptions/generic/MDParseException.php

19 lines
379 B
PHP

<?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();
}
}