That should have been `InvalidArgumentException` since it's an invalid argument for `setType`