[doctrine] store third party errors as objects.