errorMessage = errorView.getMessage();
} catch (final Throwable t) {
log.debug("Error getting or no error entity found", t);
}
}
throw new DNSAPIClientHttpException(
DNSAPIClientHttpExceptionCode.serverError,
restResponse.getStatus(), restResponse.getStatus(),
errorMessage != null ? errorMessage : restResponse
.getStatusInfo().getReasonPhrase());
}