Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Add a error message to the exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
macnibblet committed Apr 10, 2014
1 parent ff80b8c commit 5024225
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Expand Up @@ -40,6 +40,12 @@

namespace Roave\NonceUtility\Service\Exception;

use Exception;

class NonceAlreadyConsumedException extends RuntimeException
{
public function __construct($message = 'Nonce already consumed', $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
Expand Up @@ -40,6 +40,12 @@

namespace Roave\NonceUtility\Service\Exception;

use Exception;

class NonceHasExpiredException extends RuntimeException
{
public function __construct($message = 'Nonce has expired.', $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
Expand Up @@ -40,6 +40,12 @@

namespace Roave\NonceUtility\Service\Exception;

use Exception;

class NonceNotFoundException extends RuntimeException
{
public function __construct($message = 'Nonce not found', $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}
}

0 comments on commit 5024225

Please sign in to comment.