7373import com .marklogic .client .type .PlanTripleOption ;
7474import com .marklogic .client .type .PlanValueOption ;
7575import com .marklogic .client .util .EditableNamespaceContext ;
76- import com .sun .org .apache .xalan .internal .xsltc .compiler .util .InternalError ;
7776
7877public 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