An error occurred while loading the file. Please try again.
-
Guillaume Perréal authored6d1587cf
<?php
/*
* Copyright (C) 2015 IRSTEA
* All rights reserved.
*/
namespace Irstea\FileUploadBundle\Exception;
use Irstea\FileUploadBundle\Model\UploadedFileInterface;
use RuntimeException;
/**
* Description of RejectedFileException
*
* @author Guillaume Perréal <guillaume.perreal@irstea.fr>
*/
class RejectedFileException extends RuntimeException implements Exception
{
/**
*
* @var UploadedFileInterface
*/
protected $uploadedFile;
/**
*
* @param UploadedFileInterface $file
* @param string $message
* @param int $code
* @param \Exception $previous
*/
public function __construct(UploadedFileInterface $uploadedFile, $message, $code = 0, $previous = null)
{
parent::__construct($message, $code, $previous);
$this->uploadedFile = $uploadedFile;
}
/**
* @return UploadedFileInterface
*/
public function getUploadedFile()
{
return $this->uploadedFile;
}
}