Package io.micronaut.problem.violations
Class Violation
java.lang.Object
io.micronaut.problem.violations.Violation
Constraint Violation information.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getField()
@NonNull String
void
void
setMessage
(@NonNull String message)
-
Constructor Details
-
Violation
- Parameters:
field
- Field affected by the violationmessage
- message explaining the violation.
-
-
Method Details
-
getField
- Returns:
- Field affected by the violation
-
setField
- Parameters:
field
- Field affected by the violation
-
getMessage
- Returns:
- message explaining the violation.
-
setMessage
- Parameters:
message
- message explaining the violation.
-