Skip to content

Commit 6f6988c

Browse files
authored
Merge pull request #437 from cakephp/exception
Update AuthenticationRequiredException to extend HttpException.
2 parents 493f79b + 6befd8a commit 6f6988c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Authenticator/AuthenticationRequiredException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
*/
1717
namespace Authentication\Authenticator;
1818

19-
use RuntimeException;
19+
use Cake\Http\Exception\HttpException;
2020

2121
/**
2222
* An exception for stateless authenticators when credentials are wrong/missing.
2323
*
2424
* Unlike `UnauthenticatedException` this class can carry authentication challenge headers.
2525
* and is used by stateless authenticators.
2626
*/
27-
class AuthenticationRequiredException extends RuntimeException
27+
class AuthenticationRequiredException extends HttpException
2828
{
2929
/**
3030
* @var array

0 commit comments

Comments
 (0)