@zimathias `namespace Doctrine\MongoDB\Exception; class InvalidArgumentException extends \InvalidArgumentException implements BaseExceptionInterface {}` would solve the problem here, allowing you to specifically catch `Doctrine\MongoDB\Exception\InvalidArgumentException` or `Doctrine\MongoDB\Exception\BaseExceptionInterface` instead.