Re: SolrException.ErrorCode

2010-01-05 Thread Chris Hostetter
assertQEx(String message, SolrQueryRequest req, SolrException.ErrorCode ) { I think because that assert code predates the ErrorCode class (once upon a time Solr was also using numeric codes like "0", "-1" for some internal errors) and when the ErrorCode class got added, no one upd

SolrException.ErrorCode

2009-12-23 Thread Grant Ingersoll
Any reason why ErrorCode.code isn't public final? It seems weird that we have public void assertQEx(String message, SolrQueryRequest req, int code ) { instead of public void assertQEx(String message, SolrQueryRequest req, SolrException.ErrorCode ) { So much easier to write: assertQEx(&