IOException.php 360 B

12345678910111213141516
  1. <?php
  2. namespace Path\Exception;
  3. class IOException extends \Exception
  4. {
  5. public function __construct($message = "Read/write error", $code = 0, \Exception $previous = null)
  6. {
  7. parent::__construct($message, $code, $previous);
  8. }
  9. public function __toString()
  10. {
  11. return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
  12. }
  13. }