edited ResolvingError to preserve stack trace