Move InjectionError so that it's in scope when used.