-
public class ErrorMessage.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ErrorMessage.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final ErrorMessage
forRule(String format, String value, String other)
Produces an error message for a simple validation rule. final ErrorMessage
forRule(String format, String value)
Produces an error message for a simple validation rule. final ErrorMessage
forRule(String format)
Produces an error message for a simple validation rule. final ErrorMessage
,String)>forComposite(String format, ErrorMessage left, ErrorMessage right, <ERROR CLASS> operation, String accessor)
Produces an error message for a composite validation rule. final ErrorMessage
,String)>forComposite(String format, ErrorMessage left, ErrorMessage right, <ERROR CLASS> operation)
Produces an error message for a composite validation rule. final ErrorMessage
,String)>forComposite(String format, ErrorMessage left, ErrorMessage right)
Produces an error message for a composite validation rule. -
-
Method Detail
-
forRule
@JvmOverloads() final ErrorMessage forRule(String format, String value, String other)
Produces an error message for a simple validation rule.
- Parameters:
format
- the message formatvalue
- the value of the fieldother
- the value to which the field is compared
-
forRule
@JvmOverloads() final ErrorMessage forRule(String format, String value)
Produces an error message for a simple validation rule.
- Parameters:
format
- the message formatvalue
- the value of the field
-
forRule
@JvmOverloads() final ErrorMessage forRule(String format)
Produces an error message for a simple validation rule.
- Parameters:
format
- the message format
-
forComposite
@JvmOverloads() final ErrorMessage ,String)>forComposite(String format, ErrorMessage left, ErrorMessage right, <ERROR CLASS> operation, String accessor)
Produces an error message for a composite validation rule.
- Parameters:
format
- the message formatleft
- the error message of the left ruleright
- the error message of the right ruleoperation
- the operator which joins the rule conditions
-
forComposite
@JvmOverloads() final ErrorMessage ,String)>forComposite(String format, ErrorMessage left, ErrorMessage right, <ERROR CLASS> operation)
Produces an error message for a composite validation rule.
- Parameters:
format
- the message formatleft
- the error message of the left ruleright
- the error message of the right ruleoperation
- the operator which joins the rule conditions
-
forComposite
@JvmOverloads() final ErrorMessage ,String)>forComposite(String format, ErrorMessage left, ErrorMessage right)
Produces an error message for a composite validation rule.
- Parameters:
format
- the message formatleft
- the error message of the left ruleright
- the error message of the right rule
-
-
-
-