public BindAddress getBindAddress() {
return requestConstants.bindAddress;
}
public void error(Throwable throwable) {
ServerErrorHandler serverErrorHandler = get(ServerErrorHandler.class);
throwable = unpackThrowable(throwable);
ThrowableHolder throwableHolder = getRequest().maybeGet(ThrowableHolder.class).orElse(null);
if (throwableHolder == null) {
getRequest().add(ThrowableHolder.class, new ThrowableHolder(throwable));
try {
serverErrorHandler.error(this, throwable);
} catch (Throwable errorHandlerThrowable) {
onErrorHandlerError(serverErrorHandler, throwable, errorHandlerThrowable);
}
} else {
onErrorHandlerError(serverErrorHandler, throwableHolder.getThrowable(), throwable);