MDErrorReporter/exceptions/updates/MDFileIsNotWritable.php

24 lines
547 B
PHP
Raw Normal View History

2021-07-20 01:16:00 +02:00
<?PHP
/**
* This file contains an exception class for notifying about non-writable directories.
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
/**
* Custom exception class for throwing if a given file path is not writable.
*/
final class MDFileIsNotWritable extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
2022-09-15 21:06:32 +02:00
return 'This file or directory cannot be written: ' . $this->getMessage();
2021-07-20 01:16:00 +02:00
}
}