Exemple #1
0
 function __construct($message = '', $code = 0, \Exception $previous = null)
 {
     if ($code === 0) {
         $code = static::OPERATION_EXCEPTION;
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @param string $path Filename or path which cannot be found.
  * @param string $details
  */
 public function __construct($path, $details = '')
 {
     $message = 'Failed to locate filesystem path ' . $path;
     if (!empty($details)) {
         $message .= ' - ' . $details . '.';
     }
     parent::__construct($message);
 }
 public function __construct($message = 'Specified path is not a directory', $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 public function __construct($message = 'Cannot write to specified directory', $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 public function __construct($message = 'Cannot find specified file', $code = 0, $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 public function __construct($path)
 {
     parent::__construct(sprintf('The file "%s" does not exist', $path));
 }
Exemple #7
0
 function __construct($msg, $filename = null)
 {
     parent::__construct(sprintf("%s (%s)", $msg, __printable($filename)));
 }