Raise a proper AttributeError if method not found