Add new exception MDImporterWritingIsDisabled
This commit is contained in:
parent
1aadb77bbf
commit
39b31e4ad9
19
exceptions/updates/MDImporterWritingIsDisabled.php
Normal file
19
exceptions/updates/MDImporterWritingIsDisabled.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?PHP
|
||||
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 {
|
||||
/**
|
||||
* Error message.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage() {
|
||||
//error message
|
||||
return 'Inputs are not valid.';
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user