Skip to content

[Security] AuthenticationException not implementing ExceptionInterface  #25770

@paq85

Description

@paq85

Is there any reason why \Symfony\Component\Security\Core\Exception\AuthenticationException does not implement \Symfony\Component\Security\Core\Exception\ExceptionInterface?

I would like to be able to catch all kind of Security related exceptions simply by using

} catch (\Symfony\Component\Security\Core\Exception\ExceptionInterface $sex) {

and I'm not able to catch for example \Symfony\Component\Security\Core\Exception\BadCredentialsException using that catch

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions