Skip to content

Commit

Permalink
add exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanck committed Feb 6, 2024
1 parent 632cd67 commit 374093a
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public <T> T get(int pos, Class<T> javaClass) {

@Override
public <T> void set(int pos, T value) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException("RecordProjection.set(int, Object) is not supported");
}

@Override
Expand All @@ -174,12 +174,13 @@ public StructType struct() {

@Override
public Object getField(String name) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException("RecordProjection.getField(String) is not supported");
}

@Override
public void setField(String name, Object value) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException(
"RecordProjection.setField(String, Object) is not supported");
}

@Override
Expand All @@ -189,11 +190,11 @@ public Object get(int pos) {

@Override
public Record copy() {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException("RecordProjection.copy() is not supported");
}

@Override
public Record copy(Map<String, Object> overwriteValues) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException("RecordProjection.copy(Map) is not supported");
}
}

0 comments on commit 374093a

Please sign in to comment.