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

Method internalError

src/tsd/AbstractHttpQuery.java:373–379  ·  view source on GitHub ↗

Sends 500/Internal Server Error to the client. @param cause The unexpected exception that caused this error.

(final Exception cause)

Source from the content-addressed store, hash-verified

371 * @param cause The unexpected exception that caused this error.
372 */
373 public void internalError(final Exception cause) {
374 logError("Internal Server Error on " + request().getUri(), cause);
375 sendBuffer(HttpResponseStatus.INTERNAL_SERVER_ERROR,
376 ChannelBuffers.wrappedBuffer(
377 cause.toString().getBytes(Const.UTF8_CHARSET)),
378 "text/plain");
379 }
380
381 /**
382 * Sends <code>400/Bad Request</code> status to the client.

Callers 1

handleHttpQueryMethod · 0.95

Calls 5

logErrorMethod · 0.95
requestMethod · 0.95
sendBufferMethod · 0.95
getBytesMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected