public class ResponseException extends Exception
Constructor and Description |
---|
ResponseException(int statusCode,
String reason,
String description,
DruidQuery<?> druidQuery)
Deprecated.
In order to ensure correct serialization of the Druid Query, an ObjectWriter with all appropriate
configuration should be passed in to the constructor
|
ResponseException(int statusCode,
String reason,
String description,
DruidQuery<?> druidQuery,
Throwable cause)
Deprecated.
In order to ensure correct serialization of the Druid Query, an ObjectWriter with all appropriate
configuration should be passed in to the constructor
|
ResponseException(int statusCode,
String reason,
String description,
DruidQuery<?> druidQuery,
Throwable cause,
com.fasterxml.jackson.databind.ObjectWriter objectWriter)
Class constructor with all the parameters to prepare the error response, plus a writer to serialize the Druid
query.
|
ResponseException(javax.ws.rs.core.Response.StatusType statusType,
DruidAggregationQuery<?> druidQuery,
Throwable error)
Deprecated.
In order to ensure correct serialization of the Druid Query, an ObjectWriter with all appropriate
configuration should be passed in to the constructor
|
ResponseException(javax.ws.rs.core.Response.StatusType statusType,
DruidAggregationQuery<?> druidQuery,
Throwable error,
com.fasterxml.jackson.databind.ObjectWriter writer)
Class constructor with throwable, other parameters and a mapper for serializing the druid query.
|
Modifier and Type | Method and Description |
---|---|
Throwable |
getCause() |
String |
getDescription() |
DruidQuery<?> |
getDruidQuery() |
String |
getReason() |
int |
getStatusCode() |
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ResponseException(int statusCode, String reason, String description, DruidQuery<?> druidQuery, Throwable cause, com.fasterxml.jackson.databind.ObjectWriter objectWriter)
statusCode
- Http status code for the errorreason
- Reason for the errordescription
- Description for the errordruidQuery
- The druid query being processedcause
- Exception object with error detailsobjectWriter
- The writer to use to serialize the Druid querypublic ResponseException(javax.ws.rs.core.Response.StatusType statusType, DruidAggregationQuery<?> druidQuery, Throwable error, com.fasterxml.jackson.databind.ObjectWriter writer)
statusType
- Status type of the responsedruidQuery
- The druid query being processederror
- Exception object with error detailswriter
- Writer for serializing the druid query@Deprecated public ResponseException(javax.ws.rs.core.Response.StatusType statusType, DruidAggregationQuery<?> druidQuery, Throwable error)
statusType
- Status type of the responsedruidQuery
- The druid query being processederror
- Exception object with error details@Deprecated public ResponseException(int statusCode, String reason, String description, DruidQuery<?> druidQuery)
statusCode
- Http status code for the errorreason
- Reason for the errordescription
- Description for the errordruidQuery
- The druid query being processed@Deprecated public ResponseException(int statusCode, String reason, String description, DruidQuery<?> druidQuery, Throwable cause)
statusCode
- Http status code for the errorreason
- Reason for the errordescription
- Description for the errordruidQuery
- The druid query being processedcause
- Exception object with error detailsCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.