MDErrorReporter/exceptions/generic/MDFileIsNotReadable.php

29 lines
537 B
PHP

<?PHP
/**
* This file contains an exception class for trying to enter non-existent files.
*
* @file
*
* @author Joshua Ramon Enslin <joshua@museum-digital.de>
*/
declare(strict_types = 1);
/**
* Custom exception class for non-existing files.
*/
class MDFileIsNotReadable extends Exception {
/**
* Error message.
*
* @return string
*/
public function errorMessage() {
//error message
$errorMsg = 'This file does not exist: ' . $this->getMessage();
return $errorMsg;
}
}