public class SolrException extends RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
SolrException.ErrorCode |
Modifier and Type | Field and Description |
---|---|
static Set<String> |
ignorePatterns
For test code - do not log exceptions that match any of the regular expressions in ignorePatterns
|
boolean |
logged
Deprecated.
Logging should now occur from the top-most level, making this unnecessary in 4.x
|
Constructor and Description |
---|
SolrException(int code,
String msg)
Deprecated.
|
SolrException(int code,
String msg,
boolean alreadyLogged)
Deprecated.
|
SolrException(int code,
String msg,
Throwable th)
Deprecated.
|
SolrException(int code,
String msg,
Throwable th,
boolean alreadyLogged)
Deprecated.
|
SolrException(int code,
Throwable th)
Deprecated.
|
SolrException(SolrException.ErrorCode code,
String msg) |
SolrException(SolrException.ErrorCode code,
String msg,
boolean alreadyLogged)
Deprecated.
Logging should now occur from the top-most level, making this unnecessary in 4.x.
use
SolrException(ErrorCode, String) |
SolrException(SolrException.ErrorCode code,
String msg,
Throwable th) |
SolrException(SolrException.ErrorCode code,
String msg,
Throwable th,
boolean alreadyLogged)
Deprecated.
Logging should now occur from the top-most level, making this unnecessary in 4.x
use
SolrException(ErrorCode, String, Throwable) |
SolrException(SolrException.ErrorCode code,
Throwable th) |
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
|
static String |
toStr(Throwable e) |
String |
toString() |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
@Deprecated public boolean logged
public SolrException(SolrException.ErrorCode code, String msg)
@Deprecated public SolrException(SolrException.ErrorCode code, String msg, boolean alreadyLogged)
SolrException(ErrorCode, String)
@Deprecated public SolrException(SolrException.ErrorCode code, String msg, Throwable th, boolean alreadyLogged)
SolrException(ErrorCode, String, Throwable)
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)
.public int code()
public void log(org.slf4j.Logger log)
public static void log(org.slf4j.Logger log, Throwable e)
public static void logOnce(org.slf4j.Logger log, String msg, Throwable e)
log(Logger, String, Throwable)