73
73
import com .marklogic .client .type .PlanTripleOption ;
74
74
import com .marklogic .client .type .PlanValueOption ;
75
75
import com .marklogic .client .util .EditableNamespaceContext ;
76
- import com .sun .org .apache .xalan .internal .xsltc .compiler .util .InternalError ;
77
76
78
77
public class RowManagerTest {
79
78
private static String [] uris = null ;
@@ -243,7 +242,7 @@ public void testResultDoc() throws IOException, XPathExpressionException {
243
242
checkSingleRow (rowsNode , rowstruct , datatypeStyle );
244
243
break ;
245
244
default :
246
- throw new InternalError ("unknown case for RowStructure: " +rowstruct );
245
+ throw new IllegalArgumentException ("unknown case for RowStructure: " +rowstruct );
247
246
}
248
247
249
248
try (ReaderHandle readerHandle = new ReaderHandle ()) {
@@ -875,7 +874,7 @@ private void checkHeader(JsonNode header, RowSetPart datatypeStyle) {
875
874
checkSecondTypedHeader ( header .get (1 ) );
876
875
break ;
877
876
default :
878
- throw new InternalError ("unknown case for RowSetPart: " +datatypeStyle );
877
+ throw new IllegalArgumentException ("unknown case for RowSetPart: " +datatypeStyle );
879
878
}
880
879
}
881
880
private void checkSingleRow (JsonNode row , RowStructure rowstruct , RowSetPart datatypeStyle ) {
@@ -893,7 +892,7 @@ private void checkSingleRow(JsonNode row, RowStructure rowstruct, RowSetPart dat
893
892
checkSecondObject ( row .get (1 ) );
894
893
break ;
895
894
default :
896
- throw new InternalError ("unknown case for RowStructure: " +rowstruct );
895
+ throw new IllegalArgumentException ("unknown case for RowStructure: " +rowstruct );
897
896
}
898
897
break ;
899
898
case HEADER :
@@ -909,11 +908,11 @@ private void checkSingleRow(JsonNode row, RowStructure rowstruct, RowSetPart dat
909
908
checkSecondValue ("JSON" , row .get (1 ).asText () );
910
909
break ;
911
910
default :
912
- throw new InternalError ("unknown case for RowStructure: " +rowstruct );
911
+ throw new IllegalArgumentException ("unknown case for RowStructure: " +rowstruct );
913
912
}
914
913
break ;
915
914
default :
916
- throw new InternalError ("unknown case for RowSetPart: " +datatypeStyle );
915
+ throw new IllegalArgumentException ("unknown case for RowSetPart: " +datatypeStyle );
917
916
}
918
917
}
919
918
private void checkFirstTypedHeader (JsonNode colNode ) {
0 commit comments