Sends 500/Internal Server Error to the client. @param cause The unexpected exception that caused this error.
(final Exception cause)
| 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. |
no test coverage detected