W3cubDocs

/Symfony 4.1

Symfony\Component\Security\Core\Exception

Classes

AccessDeniedException AccessDeniedException is thrown when the account has not the required role.
AccountExpiredException AccountExpiredException is thrown when the user account has expired.
AccountStatusException AccountStatusException is the base class for authentication exceptions caused by the user account status.
AuthenticationCredentialsNotFoundException AuthenticationCredentialsNotFoundException is thrown when an authentication is rejected because no Token is available.
AuthenticationException AuthenticationException is the base class for all authentication exceptions.
AuthenticationExpiredException AuthenticationServiceException is thrown when an authenticated token becomes un-authenticated between requests.
AuthenticationServiceException AuthenticationServiceException is thrown when an authentication request could not be processed due to a system problem.
BadCredentialsException BadCredentialsException is thrown when the user credentials are invalid.
CookieTheftException This exception is thrown when the RememberMeServices implementation detects that a presented cookie has already been used by someone else.
CredentialsExpiredException CredentialsExpiredException is thrown when the user account credentials have expired.
CustomUserMessageAuthenticationException An authentication exception where you can control the message shown to the user.
DisabledException DisabledException is thrown when the user account is disabled.
InsufficientAuthenticationException InsufficientAuthenticationException is thrown if the user credentials are not sufficiently trusted.
InvalidArgumentException Base InvalidArgumentException for the Security component.
InvalidCsrfTokenException This exception is thrown when the csrf token is invalid.
LockedException LockedException is thrown if the user account is locked.
LogicException Base LogicException for the Security component.
LogoutException LogoutException is thrown when the account cannot be logged out.
ProviderNotFoundException ProviderNotFoundException is thrown when no AuthenticationProviderInterface instance supports an authentication Token.
RuntimeException Base RuntimeException for the Security component.
SessionUnavailableException This exception is thrown when no session is available.
TokenNotFoundException TokenNotFoundException is thrown if a Token cannot be found.
UnsupportedUserException This exception is thrown when an account is reloaded from a provider which doesn't support the passed implementation of UserInterface.
UsernameNotFoundException UsernameNotFoundException is thrown if a User cannot be found by its username.

Interfaces

ExceptionInterface Base ExceptionInterface for the Security component.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Core/Exception.html