Skip to content

Commit 0c61bd4

Browse files
dfa1claude
andcommitted
docs(reader): Chunk.as declares the policy fail-fast throw
Review parity finding: as(String, ...) routes through ColumnName.of like column(String) but did not document the IllegalArgumentException. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 2960655 commit 0c61bd4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • reader/src/main/java/io/github/dfa1/vortex/reader

reader/src/main/java/io/github/dfa1/vortex/reader/Chunk.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ public <T extends Array> T column(ColumnName name) {
144144
/// @return decoded values in row order
145145
/// @throws VortexException if `name` isn't present, isn't an extension column,
146146
/// or the requested `domainType` doesn't match the column's extension id
147+
/// @throws IllegalArgumentException if `name` violates the column-name policy
148+
/// ([io.github.dfa1.vortex.core.model.ColumnName]) — it could never match
147149
@SuppressWarnings("unchecked")
148150
public <T> List<T> as(String name, Class<T> domainType) {
149151
Column col = columns.get(ColumnName.of(name));

0 commit comments

Comments
 (0)