2023-07-22 14:23:16 +02:00
|
|
|
<?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
|
2023-07-26 14:39:31 +02:00
|
|
|
return 'Invalid input CSV: ' . $this->getMessage();
|
2023-07-22 14:23:16 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|