All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.bench.support.checks.CheckResult Maven / Gradle / Ivy

There is a newer version: 0.2.1
Show newest version
package cdc.bench.support.checks;

public class CheckResult {
   public static enum Status {
      OK,
      INFO,
      WARNING,
      ERROR
   }

   private final Status status;
   private final String message;

   public CheckResult(Status status,
                      String message) {
      this.status = status;
      this.message = message;
   }

   public CheckResult(Status status) {
      this(status, null);
   }

   public Status getStatus() {
      return status;
   }

   public String getMessage() {
      return message;
   }

   @Override
   public String toString() {
      return status + " " + message;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy