Package dev.voidframework.validation
Class ValidationError
java.lang.Object
dev.voidframework.validation.ValidationError
Represents a single validation error.
-
Constructor Summary
ConstructorsConstructorDescriptionValidationError(String message, String messageKey, Object... argumentArray) Build a new instance. -
Method Summary
Modifier and TypeMethodDescriptionObject[]Retrieves the error message arguments.Retrieves the translated error message.Retrieves the error message key.
-
Constructor Details
-
ValidationError
Build a new instance.- Parameters:
message- The translated error messagemessageKey- The error message keyargumentArray- The error message arguments
-
-
Method Details
-
getMessage
Retrieves the translated error message.- Returns:
- The translated error message
-
getMessageKey
Retrieves the error message key.- Returns:
- The error message key
-
getArgumentArray
Retrieves the error message arguments.- Returns:
- The error message arguments
-