MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / badRequest

Method badRequest

src/tsd/AbstractHttpQuery.java:385–391  ·  view source on GitHub ↗

Sends 400/Bad Request status to the client. @param exception The exception that was thrown

(final BadRequestException exception)

Source from the content-addressed store, hash-verified

383 * @param exception The exception that was thrown
384 */
385 public void badRequest(final BadRequestException exception) {
386 logWarn("Bad Request on " + request().getUri() + ": " + exception.getMessage());
387 sendBuffer(HttpResponseStatus.BAD_REQUEST,
388 ChannelBuffers.wrappedBuffer(
389 exception.toString().getBytes(Const.UTF8_CHARSET)),
390 "text/plain");
391 }
392
393 /**
394 * Sends <code>404/Not Found</code> to the client.

Callers 1

handleHttpQueryMethod · 0.95

Calls 6

logWarnMethod · 0.95
requestMethod · 0.95
sendBufferMethod · 0.95
getMessageMethod · 0.65
getBytesMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected