APISonar


org.sonatype.nexus.common.log.ExceptionSummarizer.log

> org > sonatype > nexus > common > log > ExceptionSummarizer > log
org APIs sonatype APIs nexus APIs common APIs log APIs ExceptionSummarizer APIs log APIs

Example 1
private final ExceptionSummarizer exceptionSummarizer = summarize(sameType(), warn(log));

  public Response isAvailable() {
    try {
      statusHealthCheckStore.checkReadHealth();
      return ok().build();
    }
    catch (Exception e) {
      exceptionSummarizer.log("Status health check failed, responding server is unavailable", e);
      return status(SERVICE_UNAVAILABLE).build();
    }
  }