Do not use sun.reflect.generics.reflectiveObjects.NotImplementedException.
This was only used for the case of unsupported query type. We now fire
InvalidQueryException("queryType") instead.
import org.yaz4j.jni.yaz4jlib;
import org.yaz4j.jni.yaz4jlibConstants;
-import sun.reflect.generics.reflectiveObjects.NotImplementedException;
-
public class Connection
{
private String host ;
else if( queryType == QueryType.PrefixQuery )
yaz4jlib.ZOOM_query_prefix(yazQuery, query);
else
- throw new NotImplementedException();
+ throw new InvalidQueryException("queryType");
SWIGTYPE_p_ZOOM_resultset_p yazResultSet = yaz4jlib.ZOOM_connection_search(zoomConnection, yazQuery);