| 2320 | } |
| 2321 | |
| 2322 | static final IllegalArgumentException indexFail(Fields row, Field<?> field) { |
| 2323 | if (lookupNested(row, field)) |
| 2324 | return new IllegalArgumentException("Field " + field + " is not contained at the top level of row type containing nested row types. Unnest the nested row type first and access the field from there: " + row); |
| 2325 | else |
| 2326 | return new IllegalArgumentException("Field " + field + " is not contained in row type " + row); |
| 2327 | } |
| 2328 | |
| 2329 | private static final boolean lookupNested(Fields row, Field<?> field) { |
| 2330 | |