Skip to content

Commit

Permalink
Merge pull request #437 from cakephp/exception
Browse files Browse the repository at this point in the history
Update AuthenticationRequiredException to extend HttpException.
  • Loading branch information
othercorey authored Feb 11, 2021
2 parents 493f79b + 6befd8a commit 6f6988c
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 6f6988c

Please sign in to comment.