/** * Constructor * @param string $filename Filename * @param FormatInterface $format Format * @param int $code Exception code * @param \Exception $previous Previous exception */ public function __construct($filename, FormatInterface $format, $code = 0, \Exception $previous = null) { $this->filename = $filename; $this->format = $format; $message = sprintf('There are no available methods to decompress format "%s"', $format->getName()); parent::__construct($message, $code, $previous); }
/** * Constructor * @param string $filename Filename * @param int $code Exception code * @param \Exception $previous Previous exception */ public function __construct($filename, $severity = self::SEVERITY_HIGH, $code = 0, \Exception $previous = null) { $this->filename = $filename; $this->severity = $severity; $message = sprintf('File "%s" is not valid', $filename); parent::__construct($message, $code, $previous); }
/** * Constructor. * @param string $target Target directory. * @param int $code Exception code. * @param \Exception $previous Previous exception. */ public function __construct($target, $code = 0, \Exception $previous = null) { $this->target = $target; $message = sprintf('Target directory "%s" is not writable', $target); parent::__construct($message, $code, $previous); }
/** * Constructor. * @param string $filename Compressed file path. * @param int $code Exception code. * @param \Exception $previous Previous exception. */ public function __construct($filename, $code = 0, \Exception $previous = null) { $this->filename = $filename; $message = sprintf('Compressed file "%s" does not contain a single directory', $filename); parent::__construct($message, $code, $previous); }
/** * Constructor * @param string $filename Filename * @param int $code Exception code * @param \Exception $previous Previous exception */ public function __construct($filename, $code = 0, \Exception $previous = null) { $this->filename = $filename; $message = sprintf('File "%s" is not readable', $filename); parent::__construct($message, $code, $previous); }
/** * Constructor * @param string $filename Filename * @param int $code Exception code * @param \Exception $previous Previous exception */ public function __construct($filename, $code = 0, \Exception $previous = null) { $this->filename = $filename; $message = sprintf('Target directory "%s" is not writable', $filename); parent::__construct($message, $code, $previous); }