Added extra Exceptions

This commit is contained in:
Shoghi Cervantes
2014-10-28 21:07:12 +01:00
parent b6f7ee20fc
commit 8c4faa8622
37 changed files with 215 additions and 87 deletions

View File

@ -41,11 +41,11 @@ class PermissionAttachmentInfo{
* @param PermissionAttachment $attachment
* @param bool $value
*
* @throws \Exception
* @throws \InvalidStateException
*/
public function __construct(Permissible $permissible, $permission, $attachment, $value){
if($permission === null){
throw new \Exception("Permission may not be null");
throw new \InvalidStateException("Permission may not be null");
}
$this->permissible = $permissible;