Skip to content

Commit

Permalink
Update AuthenticationRequiredException to extend HttpException.
Browse files Browse the repository at this point in the history
Closes #435
  • Loading branch information
ADmad committed Feb 11, 2021
1 parent 493f79b commit 6befd8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Authenticator/AuthenticationRequiredException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
*/
namespace Authentication\Authenticator;

use RuntimeException;
use Cake\Http\Exception\HttpException;

/**
* An exception for stateless authenticators when credentials are wrong/missing.
*
* Unlike `UnauthenticatedException` this class can carry authentication challenge headers.
* and is used by stateless authenticators.
*/
class AuthenticationRequiredException extends RuntimeException
class AuthenticationRequiredException extends HttpException
{
/**
* @var array
Expand Down

0 comments on commit 6befd8a

Please sign in to comment.