Uses of Enum Class
io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
-
Uses of MessageTemplates.TwoArgTemplate in io.github.chrimle.exceptionfactory
Methods in io.github.chrimle.exceptionfactory that return MessageTemplates.TwoArgTemplateModifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MessageTemplates.TwoArgTemplate[]
MessageTemplates.TwoArgTemplate.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.TwoArgTemplateModifier and TypeMethodDescriptionstatic @NotNull IllegalArgumentException
ExceptionFactory.illegalArgumentOf
(@Nullable String key, MessageTemplates.TwoArgTemplate messageTemplate, @Nullable String value) Creates anIllegalArgumentException
instance with themessage
derived from themessageTemplate
andkey
.static @NotNull IllegalStateException
ExceptionFactory.illegalStateOf
(@Nullable String key, MessageTemplates.TwoArgTemplate messageTemplate, @Nullable String value) Creates anIllegalStateException
instance with themessage
derived from themessageTemplate
andkey
.ExceptionBuilder.setMessage
(MessageTemplates.TwoArgTemplate messageTemplate, String messageArgOne, String messageArgTwo) Sets themessage
to be used when instantiatingExceptionBuilder
, by applying themessageArgOne
andmessageArgTwo
to themessageTemplate
.