You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by kishan <mk...@gmail.com> on 2010/08/30 14:05:33 UTC

Capturing 'SQLException' in Solr-DataImport for my Java code

HI all,
iam using solr 1.4.0 with java.
recently i observed  in my solr logs ,
Because of the invalid userName
i got java.sql.SQLException: Access denied for user '1234'@'localhost
i resolved this but iam not able to capture this error in my code so that to
throw  a Proper message to the user .

how can i catch the SqlEXceptions in Solr-DataImport in my Java code.


please suggest me ,

thanks in advance. 
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Capturing-SQLException-in-Solr-DataImport-for-my-Java-code-tp1388339p1388339.html
Sent from the Solr - User mailing list archive at Nabble.com.