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
|
Constructor and Description |
---|
SolrException(SolrException.ErrorCode code,
String msg) |
SolrException(SolrException.ErrorCode code,
String msg,
Throwable th) |
SolrException(SolrException.ErrorCode code,
Throwable th) |
Modifier and Type | Method and Description |
---|---|
int |
code() |
static String |
doIgnore(Throwable t,
String m)
Returns null if this exception does not match any ignore patterns, or a message string to use if it does.
|
static Throwable |
getRootCause(Throwable t) |
void |
log(org.slf4j.Logger log) |
static void |
log(org.slf4j.Logger log,
String msg) |
static void |
log(org.slf4j.Logger log,
String msg,
Throwable e) |
static void |
log(org.slf4j.Logger log,
Throwable e) |
static String |
toStr(Throwable e) |
String |
toString() |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public SolrException(SolrException.ErrorCode code, String msg)
public SolrException(SolrException.ErrorCode code, String msg, Throwable th)
public SolrException(SolrException.ErrorCode code, Throwable th)
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)
public static String doIgnore(Throwable t, String m)
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.