public class ArgumentParseException
extends java.lang.Exception
| Modifier and Type | Method and Description |
|---|---|
static ArgumentParseException |
expected(java.lang.String expected)
Create a new exception with the given expected value.
|
static ArgumentParseException |
named(java.lang.String name)
Create a new exception with the given name of the argument.
|
static ArgumentParseException |
namedExpected(java.lang.String name,
java.lang.String expected)
Create a new exception with the given name of the argument and the expected value.
|
static ArgumentParseException |
namedReason(java.lang.String name,
java.lang.String reason)
Create a new exception with the given name of the argument and the reason.
|
static ArgumentParseException |
of(java.lang.String message)
Create a new exception with the given message.
|
static ArgumentParseException |
reason(java.lang.String reason)
Create a new exception with the given reason.
|
public static ArgumentParseException named(java.lang.String name)
name - The name of the argumentpublic static ArgumentParseException expected(java.lang.String expected)
expected - The expected valuepublic static ArgumentParseException reason(java.lang.String reason)
reason - The reasonpublic static ArgumentParseException namedExpected(java.lang.String name, java.lang.String expected)
name - The name of the argumentexpected - The expected valuepublic static ArgumentParseException namedReason(java.lang.String name, java.lang.String reason)
name - The name of the argumentreason - The reasonpublic static ArgumentParseException of(java.lang.String message)
message - The message