Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Security] AuthenticationException not implementing ExceptionInterface  #25770

Copy link
Copy link
Closed
@paq85

Description

@paq85
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.