org.apache.solr.core
Class SolrException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.solr.core.SolrException
All Implemented Interfaces:
Serializable

public class SolrException
extends RuntimeException

Version:
$Id: SolrException.java 542737 2007-05-30 03:13:05Z ryan $
Author:
yonik
See Also:
Serialized Form

Nested Class Summary
static class SolrException.ErrorCode
           
 
Field Summary
 boolean logged
           
 
Constructor Summary
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)
           
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()
           
 void log(Logger log)
           
static void log(Logger log, String msg, Throwable e)
           
static void log(Logger log, Throwable e)
           
static void logOnce(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

logged

public boolean logged
Constructor Detail

SolrException

public SolrException(SolrException.ErrorCode code,
                     String msg)

SolrException

public SolrException(SolrException.ErrorCode code,
                     String msg,
                     boolean alreadyLogged)

SolrException

public SolrException(SolrException.ErrorCode code,
                     String msg,
                     Throwable th,
                     boolean alreadyLogged)

SolrException

public SolrException(SolrException.ErrorCode code,
                     String msg,
                     Throwable th)

SolrException

public SolrException(SolrException.ErrorCode code,
                     Throwable th)

SolrException

@Deprecated
public SolrException(int code,
                                String msg)
Deprecated. 


SolrException

@Deprecated
public SolrException(int code,
                                String msg,
                                boolean alreadyLogged)
Deprecated. 


SolrException

@Deprecated
public SolrException(int code,
                                String msg,
                                Throwable th,
                                boolean alreadyLogged)
Deprecated. 


SolrException

@Deprecated
public SolrException(int code,
                                String msg,
                                Throwable th)
Deprecated. 


SolrException

@Deprecated
public SolrException(int code,
                                Throwable th)
Deprecated. 

Method Detail

code

public int code()

log

public void log(Logger log)

log

public static void log(Logger log,
                       Throwable e)

log

public static void log(Logger log,
                       String msg,
                       Throwable e)

logOnce

public static void logOnce(Logger log,
                           String msg,
                           Throwable e)

toString

public String toString()
Overrides:
toString in class Throwable

toStr

public static String toStr(Throwable e)


Copyright © 2006 - 2009 The Apache Software Foundation