*/ declare(strict_types = 1); /** * Custom exception class for non-existing files. */ final class MDFileIsNotReadable extends Exception { /** * Error message. * * @return string */ public function errorMessage() { //error message return 'This file does not exist: ' . $this->getMessage(); } }