Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #285 from ZF-Commons/default-messages
Browse files Browse the repository at this point in the history
Provide default message for exceptions
  • Loading branch information
danizord committed Jan 26, 2015
2 parents c3dcc0d + 7f024fa commit 42f4666
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ZfcRbac/Exception/RoleNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@
*/
class RoleNotFoundException extends BaseRuntimeException implements ExceptionInterface
{
/**
* @var string
*/
protected $message = 'No role could be found';
}
4 changes: 4 additions & 0 deletions src/ZfcRbac/Exception/UnauthorizedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@
*/
class UnauthorizedException extends BaseRuntimeException implements UnauthorizedExceptionInterface
{
/**
* @var string
*/
protected $message = 'You are not authorized to access this resource';
}

0 comments on commit 42f4666

Please sign in to comment.