Class Violation

java.lang.Object
org.gridgain.internal.cdc.api.Violation

public class Violation extends Object
Represents a violation or failed check with a name, optional error details, and an optional hint for resolution.
  • Method Details

    • name

      public String name()
    • hint

      public String hint()
    • errorDetails

      @Nullable public @Nullable String errorDetails()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Violation.Builder builder()
    • create

      public static Violation create(String name, String errorDetails)
      Creates a failed check with the given name and error details.
      Parameters:
      name - The name of the check.
      errorDetails - The error details.
      Returns:
      A failed Check instance.