You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method Console\Application::find can throw an \InvalidArgumentException when the command name typed is not defined or ambiguous.
To avoid having such exception logged into my alert system I want to filter on these exceptions. But the class \InvalidArgumentException is too generic.
What about creating a domain specific class: Symfony\Component\Console\Exception\CommandNotDefinedException extending \InvalidArgumentException ?
As a bonus, this exception class would have an extra property $alternatives to store the suggested command names.