Uses of Enum Class
com.winterhavenmc.library.messagebuilder.models.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.models.validation
Methods in com.winterhavenmc.library.messagebuilder.models.validation that return ErrorMessageKeyModifier and TypeMethodDescriptionLogging.messageKey()Returns the value of themessageKeyrecord component.static ErrorMessageKeyReturns 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.models.validation with parameters of type ErrorMessageKeyModifier and TypeMethodDescriptionstatic StringValidator.formatMessage(ErrorMessageKey errorMessageKey, Parameter parameter) Formats a localized error message using the specified string 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 string, and parameter.static <T> Validator<T> Validator.throwing(ErrorMessageKey messageKey, Parameter parameter) Returns a handler that throws aValidationExceptionusing the given error message string and parameter.Constructors in com.winterhavenmc.library.messagebuilder.models.validation with parameters of type ErrorMessageKeyModifierConstructorDescriptionLogging(LogLevel logLevel, ErrorMessageKey messageKey, Parameter parameter) Creates an instance of aLoggingrecord class.ValidationException(ErrorMessageKey errorMessageKey, Parameter parameter) Constructs a newValidationExceptionwith the specifiedErrorMessageKeyandParameterdescribing the failed validation.