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

Commit

Permalink
Provide default message for exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jan 26, 2015
1 parent c3dcc0d commit 7f024fa
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 7f024fa

Please sign in to comment.