Class ResponseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgetErrorInfo(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 intgetErrorInfo(Throwable ex, org.apache.solr.common.util.NamedList<Object> info, org.slf4j.Logger log, boolean hideTrace) Adds the given Throwable's message to the given NamedList.static ErrorInfogetTypedErrorInfo(Throwable ex, org.slf4j.Logger log) Adds information about the given Throwable to a returnedErrorInfostatic ErrorInfogetTypedErrorInfo(Throwable ex, org.slf4j.Logger log, boolean hideTrace) Adds information about the given Throwable to a returnedErrorInfo
-
Method Details
-
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:
-
getErrorInfo
public static int getErrorInfo(Throwable ex, org.apache.solr.common.util.NamedList<Object> info, org.slf4j.Logger log, boolean hideTrace) 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.
Stack trace will not be output if hideTrace=true OR system property solr.hideStackTrace=true.
- See Also:
-
getTypedErrorInfo
Adds information about the given Throwable to a returnedErrorInfoPrimarily used by v2 API code, which can handle such typed information.
Status codes less than 100 are adjusted to be 500.
- See Also:
-
getTypedErrorInfo
Adds information about the given Throwable to a returnedErrorInfoPrimarily used by v2 API code, which can handle such typed information.
Status codes less than 100 are adjusted to be 500.
Stack trace will not be output if hideTrace=true OR system property solr.hideStackTrace=true.
- See Also:
-