/** * Construct * @link http://php.net/manual/en/exception.construct.php * @param string $filename * @param int $code [optional] The Exception code. * @param Exception $previous [optional] The previous exception used for the exception chaining */ public function __construct($filename, $code = 0, Exception $previous = null) { $message = "No such file or directory: " . $filename; parent::__construct($message, $code, $previous); }
/** * Construct * @link http://php.net/manual/en/exception.construct.php * @param string $filename * @param int $code [optional] The Exception code. * @param Exception $previous [optional] The previous exception used for the exception chaining */ public function __construct($filename, $code = 0, Exception $previous = null) { $message = "Error while reading file: " . $filename; parent::__construct($message, $code, $previous); }
/** * Construct * @link http://php.net/manual/en/exception.construct.php * @param string $directory * @param int $code [optional] The Exception code. * @param Exception $previous [optional] The previous exception used for the exception chaining */ public function __construct($directory, $code = 0, Exception $previous = null) { $message = "Error creating directory: " . $directory; parent::__construct($message, $code, $previous); }