Index

B E F G I M O S V 
All Classes and Interfaces|All Packages

B

build() - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Builds the ExceptionBuilder instance, by invoking the constructor with ExceptionBuilder.message and ExceptionBuilder.cause.

E

ExceptionBuilder<T extends Exception> - Class in io.github.chrimle.exceptionfactory
Builder of Exceptions.
ExceptionFactory - Class in io.github.chrimle.exceptionfactory
Factory of Exceptions and sub-classes.

F

format(String) - Method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Creates a formatted String from the template and arg.
format(String, String) - Method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Creates a formatted String from the template and arg.

G

getTemplate() - Method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Returns the template of this constant.
getTemplate() - Method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Returns the template of this constant.

I

illegalArgumentOf(String, MessageTemplates.OneArgTemplate) - Static method in class io.github.chrimle.exceptionfactory.ExceptionFactory
Creates an IllegalArgumentException instance with the message derived from the messageTemplate and key.
illegalArgumentOf(String, MessageTemplates.TwoArgTemplate, String) - Static method in class io.github.chrimle.exceptionfactory.ExceptionFactory
Creates an IllegalArgumentException instance with the message derived from the messageTemplate and key.
illegalStateOf(String, MessageTemplates.OneArgTemplate) - Static method in class io.github.chrimle.exceptionfactory.ExceptionFactory
Creates an IllegalStateException instance with the message derived from the messageTemplate and key.
illegalStateOf(String, MessageTemplates.TwoArgTemplate, String) - Static method in class io.github.chrimle.exceptionfactory.ExceptionFactory
Creates an IllegalStateException instance with the message derived from the messageTemplate and key.
io.github.chrimle.exceptionfactory - package io.github.chrimle.exceptionfactory
 

M

MessageTemplates - Class in io.github.chrimle.exceptionfactory
A collection of preset message-templates.
MessageTemplates.OneArgTemplate - Enum Class in io.github.chrimle.exceptionfactory
Template requiring ONE template specifier to format a message.
MessageTemplates.TwoArgTemplate - Enum Class in io.github.chrimle.exceptionfactory
Template requiring TWO template specifiers to format a message.
MUST_BE_AT_LEAST - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_BE_AT_MOST - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_BE_FALSE - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_BE_GREATER_THAN - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_BE_LESS_THAN - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_BE_NEGATIVE - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_BE_POSITIVE - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_BE_TRUE - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_BE_UNIQUE - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_BE_VALID - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_CONTAIN - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_EXIST - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_MATCH_REGEX - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_NOT_BE_EMPTY - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_NOT_BE_EQUAL_TO - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_NOT_BE_NULL - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:
MUST_NOT_CONTAIN - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Example:
MUST_NOT_EXIST - Enum constant in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Example:

O

of(Class<C>) - Static method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Creates a new ExceptionBuilder instance for building and instantiating an Exception of type ExceptionBuilder.

S

setCause(Throwable) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the cause to be used when instantiating ExceptionBuilder,
setMessage(String) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the message to be used when instantiating ExceptionBuilder.
setMessage(MessageTemplates.OneArgTemplate, String) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the message to be used when instantiating ExceptionBuilder, by applying the messageArg to the messageTemplate.
setMessage(MessageTemplates.TwoArgTemplate, String, String) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the message to be used when instantiating ExceptionBuilder, by applying the messageArgOne and messageArgTwo to the messageTemplate.
setMessage(String, String...) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the message to be used when instantiating ExceptionBuilder, by formatting formattedString with the format specifiers messageArgs.
setMessage(BiFunction<String, String, String>, String, String) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the message to be used when instantiating ExceptionBuilder, by invoking messageBuilder with messageArg1 and messageArg2.
setMessage(UnaryOperator<String>, String) - Method in class io.github.chrimle.exceptionfactory.ExceptionBuilder
Sets the message to be used when instantiating ExceptionBuilder, by invoking messageBuilder with messageArg.

V

valueOf(String) - Static method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Returns the enum constant of this class with the specified name.
values() - Static method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.OneArgTemplate
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class io.github.chrimle.exceptionfactory.MessageTemplates.TwoArgTemplate
Returns an array containing the constants of this enum class, in the order they are declared.
B E F G I M O S V 
All Classes and Interfaces|All Packages