Allow overriding the ResourceManager used for error messages