FileUtils.php 409 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Exception class thrown when a filesystem access failure happens
  4. */
  5. class IOException extends Exception
  6. {
  7. private $path;
  8. /**
  9. * Construct a new IOException
  10. *
  11. * @param string $path path to the ressource that cannot be accessed
  12. */
  13. public function __construct($path)
  14. {
  15. $this->path = $path;
  16. $this->message = 'Error accessing '.$this->path;
  17. }
  18. }