Uses of Enum Class
io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
-
Uses of MessageTemplates.OneArgTemplate in io.github.chrimle.exceptionfactory
Methods in io.github.chrimle.exceptionfactory that return MessageTemplates.OneArgTemplateModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MessageTemplates.OneArgTemplate[]
MessageTemplates.OneArgTemplate.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.github.chrimle.exceptionfactory with parameters of type MessageTemplates.OneArgTemplateModifier and TypeMethodDescriptionstatic @NotNull IllegalArgumentException
ExceptionFactory.illegalArgumentOf
(@Nullable String key, MessageTemplates.OneArgTemplate messageTemplate) Creates anIllegalArgumentException
instance with themessage
derived from themessageTemplate
andkey
.static @NotNull IllegalStateException
ExceptionFactory.illegalStateOf
(@Nullable String key, MessageTemplates.OneArgTemplate messageTemplate) Creates anIllegalStateException
instance with themessage
derived from themessageTemplate
andkey
.ExceptionBuilder.setMessage
(MessageTemplates.OneArgTemplate messageTemplate, String messageArg) Sets themessage
to be used when instantiatingExceptionBuilder
, by applying themessageArg
to themessageTemplate
.