Fix for SOLR-3022 (Plugin Loader doesn't log exceptions). See SOLR-2191 and SOLR-3032 as well.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1230573 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2012-01-12 14:56:13 +00:00
parent 8913c0c597
commit 003ddcb809
1 changed files with 4 additions and 9 deletions

View File

@ -58,14 +58,11 @@ public class SolrException extends RuntimeException {
public boolean logged=false;
public SolrException(ErrorCode code, String msg) {
super(msg);
this.code=code.code;
this(code, msg, null, false);
}
public SolrException(ErrorCode code, String msg, boolean alreadyLogged) {
super(msg);
this.code=code.code;
this.logged=alreadyLogged;
this(code, msg, null, alreadyLogged);
}
public SolrException(ErrorCode code, String msg, Throwable th, boolean alreadyLogged) {
@ -75,13 +72,11 @@ public class SolrException extends RuntimeException {
}
public SolrException(ErrorCode code, String msg, Throwable th) {
this(code,msg,th,true);
this(code, msg, th, (th instanceof SolrException) ? ((SolrException)th).logged : false);
}
public SolrException(ErrorCode code, Throwable th) {
super(th);
this.code=code.code;
logged=true;
this(code, null, th, (th instanceof SolrException) ? ((SolrException)th).logged : false);
}
/**