The sqlstate, SQL_STATE_ILLEGAL_ARGUMENT has a SQLState S1009, which is customized defined.

(codes start with 1-4, and a-h, are standard-defined class).

I will rename the exception to illegal argument.