/**
  * @param int $id
  * @param int $version
  */
 public function __construct($id, $version)
 {
     parent::__construct('FileVersion ' . $version . ' from the Media with ID ' . $id . ' ', self::EXCEPTION_CODE_FILE_VERSION_NOT_FOUND);
 }
示例#2
0
 /**
  * @param int $id
  */
 public function __construct($id)
 {
     parent::__construct('File from the Media with ID "' . $id . '" not found', self::EXCEPTION_CODE_FILE_NOT_FOUND);
 }
 /**
  * @param string $message
  */
 public function __construct($message)
 {
     parent::__construct($message, self::EXCEPTION_CODE_COLLECTION_TYPE_NOT_FOUND);
 }
 /**
  * @param string $message
  */
 public function __construct($message)
 {
     parent::__construct($message, self::EXCEPTION_CODE_GHOST_SCRIPT_NOT_FOUND);
 }
 /**
  * @param string $path
  */
 public function __construct($path)
 {
     parent::__construct('A File with the name "' . basename($path) . ' exists in "' . dirname($path) . '"', self::EXCEPTION_FILENAME_ALREADY_EXISTS);
 }
 /**
  * @param string $mimeType
  */
 public function __construct($mimeType)
 {
     parent::__construct('The mimeType "' . $mimeType . '" is not supported for preview.', self::EXCEPTION_INVALID_MIMETYPE_FOR_PREVIEW);
 }
示例#7
0
 /**
  * @param string $id
  */
 public function __construct($id)
 {
     parent::__construct('Media with the ID ' . $id . ' was not found', self::EXCEPTION_CODE_MEDIA_NOT_FOUND);
 }
示例#8
0
 /**
  * @param string $id
  */
 public function __construct($id)
 {
     parent::__construct('Collection with the ID ' . $id . ' was not found', self::EXCEPTION_CODE_COLLECTION_NOT_FOUND);
 }
 /**
  * @param string $uri
  */
 public function __construct($uri)
 {
     parent::__construct(sprintf('File not found in "%s".', $uri), self::EXCEPTION_CODE_ORIGINAL_FILE_NOT_FOUND);
 }
示例#10
0
 /**
  * @param string $message
  * @param int    $code
  */
 public function __construct($message, $code)
 {
     parent::__construct($message, $code);
 }
 public function __construct()
 {
     parent::__construct('Media item not found');
 }
示例#12
0
 /**
  * @param string $alias
  */
 public function __construct($alias)
 {
     $this->alias = $alias;
     parent::__construct('Format cache with the alias ' . $alias . ' was not found', self::EXCEPTION_CACHE_NOT_FOUND);
 }
示例#13
0
 /**
  * @param string $formatKey
  */
 public function __construct($formatKey)
 {
     parent::__construct('Format with key ' . $formatKey . ' not found', self::EXCEPTION_FORMAT_NOT_FOUND);
 }
 public function __construct()
 {
     parent::__construct('Format options object misses a required parameter', self::EXCEPTION_FORMAT_OPTIONS_MISSING_PARAMETER);
 }
 public function __construct()
 {
     parent::__construct('Invalid image format');
 }