|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.solr.common.SolrException
public class SolrException
Nested Class Summary | |
---|---|
static class |
SolrException.ErrorCode
|
Field Summary | |
---|---|
static Set<String> |
ignorePatterns
For test code - do not log exceptions that match any of the regular expressions in ignorePatterns |
boolean |
logged
|
Constructor Summary | |
---|---|
SolrException(int code,
String msg)
Deprecated. Use SolrException(ErrorCode,String) . |
|
SolrException(int code,
String msg,
boolean alreadyLogged)
Deprecated. Use SolrException(ErrorCode,String,boolean) . |
|
SolrException(int code,
String msg,
Throwable th)
Deprecated. Use SolrException(ErrorCode,String,Throwable) . |
|
SolrException(int code,
String msg,
Throwable th,
boolean alreadyLogged)
Deprecated. Use SolrException(ErrorCode,String,Throwable,boolean) . |
|
SolrException(int code,
Throwable th)
Deprecated. Use SolrException(ErrorCode,Throwable) . |
|
SolrException(SolrException.ErrorCode code,
String msg)
|
|
SolrException(SolrException.ErrorCode code,
String msg,
boolean alreadyLogged)
|
|
SolrException(SolrException.ErrorCode code,
String msg,
Throwable th)
|
|
SolrException(SolrException.ErrorCode code,
String msg,
Throwable th,
boolean alreadyLogged)
|
|
SolrException(SolrException.ErrorCode code,
Throwable th)
|
Method Summary | |
---|---|
int |
code()
|
static String |
doIgnore(String m)
Returns null if this exception does not match any ignore patterns, or a message string to use if it does. |
void |
log(org.slf4j.Logger log)
|
static void |
log(org.slf4j.Logger log,
String msg,
Throwable e)
|
static void |
log(org.slf4j.Logger log,
Throwable e)
|
static void |
logOnce(org.slf4j.Logger log,
String msg,
Throwable e)
|
static String |
toStr(Throwable e)
|
String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean logged
public static Set<String> ignorePatterns
Constructor Detail |
---|
public SolrException(SolrException.ErrorCode code, String msg)
public SolrException(SolrException.ErrorCode code, String msg, boolean alreadyLogged)
public SolrException(SolrException.ErrorCode code, String msg, Throwable th, boolean alreadyLogged)
public SolrException(SolrException.ErrorCode code, String msg, Throwable th)
public SolrException(SolrException.ErrorCode code, Throwable th)
@Deprecated public SolrException(int code, String msg)
SolrException(ErrorCode,String)
.
@Deprecated public SolrException(int code, String msg, boolean alreadyLogged)
SolrException(ErrorCode,String,boolean)
.
@Deprecated public SolrException(int code, String msg, Throwable th, boolean alreadyLogged)
SolrException(ErrorCode,String,Throwable,boolean)
.
@Deprecated public SolrException(int code, String msg, Throwable th)
SolrException(ErrorCode,String,Throwable)
.
@Deprecated public SolrException(int code, Throwable th)
SolrException(ErrorCode,Throwable)
.
Method Detail |
---|
public int code()
public void log(org.slf4j.Logger log)
public static void log(org.slf4j.Logger log, Throwable e)
public static void log(org.slf4j.Logger log, String msg, Throwable e)
public static void logOnce(org.slf4j.Logger log, String msg, Throwable e)
public String toString()
toString
in class Throwable
public static String toStr(Throwable e)
public static String doIgnore(String m)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |