Add exception class MDImporterFileAccessIsDisabled

This commit is contained in:
Joshua Ramon Enslin 2023-07-21 16:21:40 +02:00
parent 39b31e4ad9
commit f281f9b293
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 18 additions and 1 deletions

View File

@ -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';
}
}

View File

@ -3,7 +3,6 @@ declare(strict_types = 1);
/** /**
* Exception thrown when trying to use the importer's write() methods during dry run. * Exception thrown when trying to use the importer's write() methods during dry run.
* are not set public.
*/ */
final class MDImporterWritingIsDisabled extends Exception { final class MDImporterWritingIsDisabled extends Exception {
/** /**