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.