Raise a proper error.