Skip to content

Commit 996a81d

Browse files
author
ehennum
committed
#728 remove spurious import and switch from VM error message
1 parent a2868db commit 996a81d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/test/java/com/marklogic/client/test/RowManagerTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
import com.marklogic.client.type.PlanTripleOption;
7474
import com.marklogic.client.type.PlanValueOption;
7575
import com.marklogic.client.util.EditableNamespaceContext;
76-
import com.sun.org.apache.xalan.internal.xsltc.compiler.util.InternalError;
7776

7877
public class RowManagerTest {
7978
private static String[] uris = null;
@@ -243,7 +242,7 @@ public void testResultDoc() throws IOException, XPathExpressionException {
243242
checkSingleRow(rowsNode, rowstruct, datatypeStyle);
244243
break;
245244
default:
246-
throw new InternalError("unknown case for RowStructure: "+rowstruct);
245+
throw new IllegalArgumentException("unknown case for RowStructure: "+rowstruct);
247246
}
248247

249248
try (ReaderHandle readerHandle = new ReaderHandle()) {
@@ -875,7 +874,7 @@ private void checkHeader(JsonNode header, RowSetPart datatypeStyle) {
875874
checkSecondTypedHeader( header.get(1) );
876875
break;
877876
default:
878-
throw new InternalError("unknown case for RowSetPart: "+datatypeStyle);
877+
throw new IllegalArgumentException("unknown case for RowSetPart: "+datatypeStyle);
879878
}
880879
}
881880
private void checkSingleRow(JsonNode row, RowStructure rowstruct, RowSetPart datatypeStyle) {
@@ -893,7 +892,7 @@ private void checkSingleRow(JsonNode row, RowStructure rowstruct, RowSetPart dat
893892
checkSecondObject( row.get(1) );
894893
break;
895894
default:
896-
throw new InternalError("unknown case for RowStructure: "+rowstruct);
895+
throw new IllegalArgumentException("unknown case for RowStructure: "+rowstruct);
897896
}
898897
break;
899898
case HEADER:
@@ -909,11 +908,11 @@ private void checkSingleRow(JsonNode row, RowStructure rowstruct, RowSetPart dat
909908
checkSecondValue("JSON", row.get(1).asText() );
910909
break;
911910
default:
912-
throw new InternalError("unknown case for RowStructure: "+rowstruct);
911+
throw new IllegalArgumentException("unknown case for RowStructure: "+rowstruct);
913912
}
914913
break;
915914
default:
916-
throw new InternalError("unknown case for RowSetPart: "+datatypeStyle);
915+
throw new IllegalArgumentException("unknown case for RowSetPart: "+datatypeStyle);
917916
}
918917
}
919918
private void checkFirstTypedHeader(JsonNode colNode) {

0 commit comments

Comments
 (0)