Returned usage of InvalidArgumentException