/**
  * FilesystemOperationFailedException constructor.
  * @param \SplFileInfo|string $filename
  * @param string $function
  * @param \Exception|null $previous
  */
 public function __construct($filename, $function, \Exception $previous = null, array $extraArgs = [])
 {
     if (!$extraArgs) {
         $extraArgs = [$function, error_get_last()['message']];
     }
     parent::__construct($filename, $previous, $extraArgs);
 }
 /**
  * InvalidLinkTargetException constructor.
  * @param \SplFileInfo|string $linkName
  * @param \SplFileInfo|string $expectedTarget
  * @param \Exception|null $previous
  */
 public function __construct($linkName, $expectedTarget, \Exception $previous = null)
 {
     if (!is_link($linkName)) {
         throw new NotALinkException($linkName);
     }
     $linkTarget = readlink($linkName);
     if ($expectedTarget instanceof \SplFileInfo) {
         $expectedTarget = $expectedTarget->getPathname();
     }
     parent::__construct($linkName, $previous, [$linkTarget, $expectedTarget]);
 }
 public function __construct($value, $expectedType)
 {
     parent::__construct(sprintf('Expected argument of type %s, %s given', $expectedType, is_object($value) ? get_class($value) : gettype($value)));
 }
 /**
  * Constructor.
  *
  * @param string $file
  */
 public function __construct($file)
 {
     parent::__construct(sprintf('Access denied for file "%s".', $file));
 }
 /**
  * Constructor.
  *
  * @param string $path The path to the accessed file
  */
 public function __construct($path)
 {
     parent::__construct(sprintf('The file %s could not be accessed', $path));
 }
 function __construct()
 {
     parent::__construct(true, false, false, "File Version ID is missing!", null);
 }
 function __construct($file)
 {
     parent::__construct($file);
     $this->message = 'Folder "' . $file . '" does not exist';
 }
 public function __construct($file)
 {
     parent::__construct($file, "FileNotWritable", 405, "is not Writable");
 }
 /**
  * @param \File        $file
  * @param \FileVersion $fileVersion
  * @param string       $message
  * @param int          $code
  * @param \Exception   $previous
  */
 public function __construct($file, $fileVersion, $message = "", $code = 0, \Exception $previous = null)
 {
     $this->fileVersionObject = $fileVersion;
     parent::__construct($file, $message, $code, $previous);
 }
 function __construct()
 {
     parent::__construct(true, false, false, "File Create Exception", null);
 }
 public function __construct($filename, \Exception $previous = null)
 {
     parent::__construct($filename, $previous, [error_get_last()['message']]);
 }
 function __construct()
 {
     parent::__construct(true, false, false, "File Version not found!", null);
 }
 /**
  * @param string $path
  */
 public function __construct($path)
 {
     parent::__construct(sprintf('Unable to write data in file %s', $path));
 }
Exemple #14
0
 public function __construct($file)
 {
     parent::__construct($file, "FileNotFound", 404, "is not Found");
 }
 public function __construct($file)
 {
     parent::__construct($file, "FileNotReadable", 403, "is not Readable");
 }
 /**
  * @param string $class
  */
 public function __construct($class)
 {
     parent::__construct(sprintf('File iterator missing for %s', get_class($class)));
 }
 /**
  * Constructor.
  *
  * @param string $path
  */
 public function __construct($path)
 {
     parent::__construct(sprintf('The file "%s" does not exist', $path));
 }
 /**
  * Constructor.
  *
  * @param string $file
  */
 public function __construct($file)
 {
     parent::__construct(sprintf('The file "%s" does not exist.', $file));
 }
Exemple #19
0
 public function __construct($message, $code = null, $response = null)
 {
     parent::__construct($message, $code);
     $this->response = $response;
 }
 public function __construct($code, $extra = '')
 {
     parent::__construct(self::$messages[$code] . $extra, self::$statusLookup[$code]);
 }