MDErrorReporter/exceptions/generic/MDInvalidCsv.php

20 lines
399 B
PHP

<?PHP
declare(strict_types = 1);
/**
* Exception to be thrown if parsing a CSV file is impossible (usually errors in
* trying to get table headings).
*/
final class MDInvalidCsv extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'Invalid input CSV: ' . $this->getMessage();
}
}