Uses of Enum Class
com.winterhavenmc.library.messagebuilder.validation.ErrorMessageKey
Packages that use ErrorMessageKey
Package
Description
Provides a flexible, localized validation framework for use within the MessageBuilder library.
-
Uses of ErrorMessageKey in com.winterhavenmc.library.messagebuilder.validation
Methods in com.winterhavenmc.library.messagebuilder.validation that return ErrorMessageKeyModifier and TypeMethodDescriptionLogging.messageKey()
Returns the value of themessageKey
record component.static ErrorMessageKey
Returns the enum constant of this class with the specified name.static ErrorMessageKey[]
ErrorMessageKey.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.winterhavenmc.library.messagebuilder.validation with parameters of type ErrorMessageKeyModifier and TypeMethodDescriptionstatic String
Validator.formatMessage
(ErrorMessageKey errorMessageKey, Parameter parameter) Formats a localized error message using the specified key and parameter.static <T> Validator
<T> Validator.logging
(LogLevel level, ErrorMessageKey messageKey, Parameter parameter) Returns a handler that logs a validation warning or error using the specified log level, message key, and parameter.static <T> Validator
<T> Validator.throwing
(ErrorMessageKey messageKey, Parameter parameter) Returns a handler that throws aValidationException
using the given error message key and parameter.Constructors in com.winterhavenmc.library.messagebuilder.validation with parameters of type ErrorMessageKeyModifierConstructorDescriptionLogging
(LogLevel logLevel, ErrorMessageKey messageKey, Parameter parameter) Creates an instance of aLogging
record class.ValidationException
(ErrorMessageKey errorMessageKey, Parameter parameter) Constructs a newValidationException
with the specifiedErrorMessageKey
andParameter
describing the failed validation.