Added EXCEPTION_INVALID_ARGUMENT exception