Class Violation

java.lang.Object
io.micronaut.problem.violations.Violation

public class Violation extends Object
Constraint Violation information.
Since:
1.0
Author:
Sergio del Amo
  • Constructor Details

    • Violation

      public Violation(@NonNull @NonNull String field, @NonNull @NonNull String message)
      Parameters:
      field - Field affected by the violation
      message - message explaining the violation.
  • Method Details

    • getField

      @NonNull public @NonNull String getField()
      Returns:
      Field affected by the violation
    • setField

      public void setField(@NonNull @NonNull String field)
      Parameters:
      field - Field affected by the violation
    • getMessage

      @NonNull public @NonNull String getMessage()
      Returns:
      message explaining the violation.
    • setMessage

      public void setMessage(@NonNull @NonNull String message)
      Parameters:
      message - message explaining the violation.