Add new exception MDImporterWritingIsDisabled

This commit is contained in:
Joshua Ramon Enslin 2023-07-21 15:44:17 +02:00
parent 1aadb77bbf
commit 39b31e4ad9
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View 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.';
}
}