Skip to content

Commit

Permalink
Revert "[PSR-6] Fix exceptions so that they are throwable"
Browse files Browse the repository at this point in the history
  • Loading branch information
simensen committed Aug 7, 2015
1 parent a1cf6c3 commit 0bc5028
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions proposed/cache.md
Expand Up @@ -372,12 +372,10 @@ namespace Psr\Cache;
/**
* Exception interface for invalid cache arguments.
*
* Any time an invalid argument is passed into a method it must throw a
* \Psr\Cache\InvalidArgumentException.
* Any time an invalid argument is passed into a method it must throw an
* exception class which implements Psr\Cache\InvalidArgumentException.
*/
class InvalidArgumentException extends \InvalidArgumentException
{
}
interface InvalidArgumentException { }
```

### CacheException
Expand All @@ -392,9 +390,7 @@ Any exception thrown by an Implementing Library MUST implement this interface.
namespace Psr\Cache;

/**
* Base exception for all exceptions thrown by an Implementing Library.
* Exception interface for all exceptions thrown by an Implementing Library.
*/
class CacheException extends \Exception
{
}
interface CacheException {}
```

0 comments on commit 0bc5028

Please sign in to comment.