Package org.apache.solr.servlet
Class ResponseUtils
- java.lang.Object
-
- org.apache.solr.servlet.ResponseUtils
-
public class ResponseUtils extends Object
Response helper methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getErrorInfo(Throwable ex, org.apache.solr.common.util.NamedList<Object> info, org.slf4j.Logger log)
Adds the given Throwable's message to the given NamedList.static ErrorInfo
getTypedErrorInfo(Throwable ex, org.slf4j.Logger log)
Adds information about the given Throwable to a returnedErrorInfo
-
-
-
Method Detail
-
getErrorInfo
public static int getErrorInfo(Throwable ex, org.apache.solr.common.util.NamedList<Object> info, org.slf4j.Logger log)
Adds the given Throwable's message to the given NamedList.Primarily used by v1 code; v2 endpoints or dispatch code should call
getTypedErrorInfo(Throwable, Logger)
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.
- See Also:
getTypedErrorInfo(Throwable, Logger)
-
-