Add exception class MDImporterFileAccessIsDisabled
This commit is contained in:
parent
39b31e4ad9
commit
f281f9b293
18
exceptions/updates/MDImporterFileAccessIsDisabled.php
Normal file
18
exceptions/updates/MDImporterFileAccessIsDisabled.php
Normal 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';
|
||||
|
||||
}
|
||||
}
|
@ -3,7 +3,6 @@ declare(strict_types = 1);
|
||||
|
||||
/**
|
||||
* Exception thrown when trying to use the importer's write() methods during dry run.
|
||||
* are not set public.
|
||||
*/
|
||||
final class MDImporterWritingIsDisabled extends Exception {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user