org.apache.solr.servlet
Class ResponseUtils

java.lang.Object
  extended by org.apache.solr.servlet.ResponseUtils

public class ResponseUtils
extends Object

Response helper methods.


Method Summary
static int getErrorInfo(Throwable ex, NamedList info, org.slf4j.Logger log)
          Adds the given Throwable's message to the given NamedList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getErrorInfo

public static int getErrorInfo(Throwable ex,
                               NamedList info,
                               org.slf4j.Logger log)
Adds the given Throwable's message to the given NamedList.

If the response code is not a regular code, the Throwable's stack trace is both logged and added to the given NamedList.

Status codes less than 100 are adjusted to be 500.



Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.