From 7f024fa4a1474e3c17dc501b9f0cf45231e08469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Mon, 26 Jan 2015 11:27:11 +0100 Subject: [PATCH] Provide default message for exceptions --- src/ZfcRbac/Exception/RoleNotFoundException.php | 4 ++++ src/ZfcRbac/Exception/UnauthorizedException.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/ZfcRbac/Exception/RoleNotFoundException.php b/src/ZfcRbac/Exception/RoleNotFoundException.php index 54fd6dde..1bfbdacb 100644 --- a/src/ZfcRbac/Exception/RoleNotFoundException.php +++ b/src/ZfcRbac/Exception/RoleNotFoundException.php @@ -28,4 +28,8 @@ */ class RoleNotFoundException extends BaseRuntimeException implements ExceptionInterface { + /** + * @var string + */ + protected $message = 'No role could be found'; } diff --git a/src/ZfcRbac/Exception/UnauthorizedException.php b/src/ZfcRbac/Exception/UnauthorizedException.php index e750c541..eeb2490a 100644 --- a/src/ZfcRbac/Exception/UnauthorizedException.php +++ b/src/ZfcRbac/Exception/UnauthorizedException.php @@ -28,4 +28,8 @@ */ class UnauthorizedException extends BaseRuntimeException implements UnauthorizedExceptionInterface { + /** + * @var string + */ + protected $message = 'You are not authorized to access this resource'; }