Add exception class MDImporterFileAccessIsDisabled

This commit is contained in:
jrenslin committed 2023-07-21 16:21:40 +02:00
1 parent 39b31e4ad9
commit f281f9b293
2 files changed
+18 -1

No files matched your search

@@ -0,0 +1,18 @@
<?PHP
declare(strict_types = 1);
/**
* Exception thrown when trying to use the file access wrapper methods during dry run.
*/
final class MDImporterFileAccessIsDisabled extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
return 'File access from the core classes is disabled during dry runs';
}
}
@@ -3,7 +3,6 @@
/**
* Exception thrown when trying to use the importer's write() methods during dry run.
* are not set public.
*/
final class MDImporterWritingIsDisabled extends Exception {
/**