Skip to content

Commit

Permalink
Merge pull request #64 from Soullivaneuh/exception
Browse files Browse the repository at this point in the history
Common exception classes
  • Loading branch information
alexdebril committed May 31, 2015
2 parents 0b2687c + e7b0433 commit 1bb246b
Show file tree
Hide file tree
Showing 9 changed files with 58 additions and 9 deletions.
6 changes: 4 additions & 2 deletions Driver/DriverUnreachableResourceException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Driver;

use Debril\RssAtomBundle\Exception\RssAtomException;

/**
* Class DriverUnreachableResourceException.
*/
class DriverUnreachableResourceException extends \Exception
class DriverUnreachableResourceException extends RssAtomException
{
//put your code here
}
4 changes: 2 additions & 2 deletions Exception/FeedCannotBeReadException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class FeedCannotBeReadException.
*/
class FeedCannotBeReadException extends \Exception
class FeedCannotBeReadException extends FeedException
{
//put your code here
}
20 changes: 20 additions & 0 deletions Exception/FeedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* Rss/Atom Bundle for Symfony 2.
*
*
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class FeedException.
*
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*/
class FeedException extends RssAtomException
{
}
3 changes: 2 additions & 1 deletion Exception/FeedForbiddenException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class FeedForbiddenException.
*/
class FeedForbiddenException extends \Exception
class FeedForbiddenException extends FeedException
{
}
3 changes: 2 additions & 1 deletion Exception/FeedNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class FeedNotFoundException.
*/
class FeedNotFoundException extends \Exception
class FeedNotFoundException extends FeedException
{
}
3 changes: 2 additions & 1 deletion Exception/FeedNotModifiedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class FeedNotModifiedException.
*/
class FeedNotModifiedException extends \Exception
class FeedNotModifiedException extends FeedException
{
}
3 changes: 2 additions & 1 deletion Exception/FeedServerErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class FeedServerErrorException.
*/
class FeedServerErrorException extends \Exception
class FeedServerErrorException extends FeedException
{
}
20 changes: 20 additions & 0 deletions Exception/RssAtomException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* Rss/Atom Bundle for Symfony 2.
*
*
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Exception;

/**
* Class RssAtomException.
*
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*/
class RssAtomException extends \RuntimeException
{
}
5 changes: 4 additions & 1 deletion Protocol/Parser/ParserException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
* @license http://opensource.org/licenses/lgpl-3.0.html LGPL
* @copyright (c) 2013, Alexandre Debril
*/

namespace Debril\RssAtomBundle\Protocol\Parser;

use Debril\RssAtomBundle\Exception\RssAtomException;

/**
* Class ParserException.
*/
class ParserException extends \Exception
class ParserException extends RssAtomException
{
}

0 comments on commit 1bb246b

Please sign in to comment.