Package org.hawaiiframework.validation
Class ValidationError
java.lang.Object
org.hawaiiframework.validation.ValidationError
Encapsulates a validation error.
- Since:
- 2.0.0
- See Also:
-
Constructor Summary
ConstructorDescriptionValidationError
(String code) Constructs a newValidationError
with the supplied error code.ValidationError
(String field, String code) Constructs a newValidationError
with the supplied field name and error code. -
Method Summary
-
Constructor Details
-
ValidationError
Constructs a newValidationError
with the supplied error code.- Parameters:
code
- the error code
-
ValidationError
Constructs a newValidationError
with the supplied field name and error code.- Parameters:
field
- the field namecode
- the error code
-
-
Method Details