Skip to content

Commit

Permalink
Improved docs for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfraile committed Dec 22, 2014
1 parent 65d3e0d commit 2b858ca
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Exception/FormatGuesserRequiredException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

namespace Distill\Exception;

/**
* Format guesser required exception.
*
* Exception thrown when a class depends on a format guesser (e.g. Chooser) and no
* guesser has been configured.
*/
class FormatGuesserRequiredException extends \Exception implements ExceptionInterface
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@

namespace Distill\Exception;

/**
* Invalid argument exception.
*
* Exception thrown when the parameters passed to a method or function are not correct.
*/
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
/**
Expand Down
5 changes: 5 additions & 0 deletions src/Exception/Method/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@

use Distill\Exception\ExceptionInterface as BaseExceptionInterface;

/**
* Exception interface for all exceptions related to the methods.
*
* @api
*/
interface ExceptionInterface extends BaseExceptionInterface
{
}
6 changes: 6 additions & 0 deletions src/Exception/StrategyRequiredException.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

namespace Distill\Exception;

/**
* Strategy required exception.
*
* Exception thrown when a class depends on a strategy (e.g. Chooser) and no
* strategy has been configured.
*/
class StrategyRequiredException extends \Exception implements ExceptionInterface
{
/**
Expand Down

0 comments on commit 2b858ca

Please sign in to comment.