-
-
Notifications
You must be signed in to change notification settings - Fork 2
ArgumentMismatchEvent
Gellért Dániel edited this page Apr 4, 2023
·
3 revisions
This event gets triggered when then input was invalid for the argument. For example the pattern does not match the user input.
It contains the following information in addition to the base event:
- the argument for which the input was invalid
This event belongs to argument, and it can be registered with Argument#setOnMismatch(ArgumentMismatchEventListener)
with an ArgumentMismatchEventListener
as parameter.
This can be done by the following way:
argument.setOnMismatch(event -> {
//...
});