Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HttpFoundation] split FileException into specialized ones about uplo…
…ad handling
- Loading branch information
Showing
10 changed files
with
230 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/CannotWriteFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_CANT_WRITE error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class CannotWriteFileException extends FileException | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/ExtensionFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_EXTENSION error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class ExtensionFileException extends FileException | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/FormSizeFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_FORM_SIZE error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class FormSizeFileException extends FileException | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/IniSizeFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_INI_SIZE error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class IniSizeFileException extends FileException | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/NoFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_NO_FILE error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class NoFileException extends FileException | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/NoTmpDirFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_NO_TMP_DIR error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class NoTmpDirFileException extends FileException | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/HttpFoundation/File/Exception/PartialFileException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpFoundation\File\Exception; | ||
|
||
/** | ||
* Thrown when an UPLOAD_ERR_PARTIAL error occurred with UploadedFile. | ||
* | ||
* @author Florent Mata <florentmata@gmail.com> | ||
*/ | ||
class PartialFileException extends FileException | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters