*/ 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 $errorMsg = 'This file or directory cannot be written: ' . $this->getMessage(); return $errorMsg; } }