Add generic exception MDParseException
This commit is contained in:
parent
cc0cf5b923
commit
a34ae51a0e
18
exceptions/generic/MDParseException.php
Normal file
18
exceptions/generic/MDParseException.php
Normal 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();
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user