Register missing regex failure caption (#351)
This commit is contained in:
parent
84857313db
commit
cc7793925d
3 changed files with 14 additions and 1 deletions
|
|
@ -63,6 +63,10 @@ public class SimpleCaptionRegistry<C> implements FactoryDelegatingCaptionRegistr
|
|||
* Default caption for {@link StandardCaptionKeys#ARGUMENT_PARSE_FAILURE_UUID}
|
||||
*/
|
||||
public static final String ARGUMENT_PARSE_FAILURE_UUID = "'{input}' is not a valid UUID";
|
||||
/**
|
||||
* Default caption for {@link StandardCaptionKeys#ARGUMENT_PARSE_FAILURE_REGEX}
|
||||
*/
|
||||
public static final String ARGUMENT_PARSE_FAILURE_REGEX = "'{input}' does not match '{pattern}'";
|
||||
/**
|
||||
* Default caption for {@link StandardCaptionKeys#ARGUMENT_PARSE_FAILURE_FLAG_UNKNOWN_FLAG}
|
||||
*/
|
||||
|
|
@ -123,6 +127,10 @@ public class SimpleCaptionRegistry<C> implements FactoryDelegatingCaptionRegistr
|
|||
StandardCaptionKeys.ARGUMENT_PARSE_FAILURE_UUID,
|
||||
(caption, sender) -> ARGUMENT_PARSE_FAILURE_UUID
|
||||
);
|
||||
this.registerMessageFactory(
|
||||
StandardCaptionKeys.ARGUMENT_PARSE_FAILURE_REGEX,
|
||||
(caption, sender) -> ARGUMENT_PARSE_FAILURE_REGEX
|
||||
);
|
||||
this.registerMessageFactory(
|
||||
StandardCaptionKeys.ARGUMENT_PARSE_FAILURE_FLAG_UNKNOWN_FLAG,
|
||||
(caption, sender) -> ARGUMENT_PARSE_FAILURE_FLAG_UNKNOWN_FLAG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue