Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch romainneutron/ProcessExceptions (PR #5398)
Commits ------- c5e7793 [Process] Normalize exceptions Discussion ---------- [Process] Normalize exceptions Bug fix: no Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes License of the code: MIT There were some exceptions in the Process scope but they were not implemented everywhere in the component. This PR ensure that all exceptions thrown inside Process implements `Process\Exception\ExceptionInterface`. --------------------------------------------------------------------------- by romainneutron at 2012-08-30T20:05:41Z Tests passes, it's a travis issue, see http://travis-ci.org/#!/symfony/symfony/builds/2287439
- Loading branch information
Showing
9 changed files
with
72 additions
and
23 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/Process/Exception/InvalidArgumentException.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\Process\Exception; | ||
|
||
/** | ||
* InvalidArgumentException for the Process Component. | ||
* | ||
* @author Romain Neutron <imprec@gmail.com> | ||
*/ | ||
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface | ||
{ | ||
} |
21 changes: 21 additions & 0 deletions
21
src/Symfony/Component/Process/Exception/LogicException.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\Process\Exception; | ||
|
||
/** | ||
* LogicException for the Process Component. | ||
* | ||
* @author Romain Neutron <imprec@gmail.com> | ||
*/ | ||
class LogicException extends \LogicException implements ExceptionInterface | ||
{ | ||
} |
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
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
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
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