ArgumentError encapsulates what a particular method or
slot expected by way of the number of positional arguments and
the presence or otherwise of keyword arguments.
Having a distinct exception solves the problem that not all the
context for an informative message may be in scope at discovery.
ArgumentError should be caught as soon as the necessary
context is available and converted to a Python exception.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final short | |
| pack-priv final short | |
| pack-priv final ArgumentError. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private | |
| pack-priv | ArgumentError(ArgumentError.
qualifies the sub-type of the problem modeThe mode is |
| pack-priv | |
| pack-priv | ArgumentError(int
minimum expected number of arguments minArgs, int maximum expected number of arguments maxArgs)The mode is |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| maxArgs | back to summary |
|---|---|
| pack-priv final short maxArgs | |
| minArgs | back to summary |
|---|---|
| pack-priv final short minArgs | |
| mode | back to summary |
|---|---|
| pack-priv final ArgumentError. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ArgumentError | back to summary |
|---|---|
| private ArgumentError(ArgumentError. | |
| ArgumentError | back to summary |
|---|---|
| pack-priv ArgumentError(ArgumentError. The mode is
| |
| ArgumentError | back to summary |
|---|---|
| pack-priv ArgumentError(int numArgs) The mode is
| |
| ArgumentError | back to summary |
|---|---|
| pack-priv ArgumentError(int minArgs, int maxArgs) The mode is
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a short description of this throwable. The result is the concatenation of:
getLocalizedMessage returns null, then just
the class name is returned.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final ArgumentError. | |
| public static final ArgumentError. | |
| public static final ArgumentError. | |
| public static final ArgumentError. | |
| public static final ArgumentError. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ArgumentError. | Returns: a modeminimum expected number of arguments minArgs, int maximum expected number of arguments maxArgs)Choose a mode from |
| public static ArgumentError. | |
| public static ArgumentError. |
| MINMAXARGS | back to summary |
|---|---|
| public static final ArgumentError. | |
| NOARGS | back to summary |
|---|---|
| public static final ArgumentError. | |
| NOKWARGS | back to summary |
|---|---|
| public static final ArgumentError. | |
| NUMARGS | back to summary |
|---|---|
| public static final ArgumentError. | |
| SELF | back to summary |
|---|---|
| public static final ArgumentError. | |
| Mode | back to summary |
|---|---|
| private Mode() | |
| choose | back to summary |
|---|---|
| pack-priv static ArgumentError. Choose a mode from
a mode | |
| valueOf | back to summary |
|---|---|
| public static ArgumentError. | |
| values | back to summary |
|---|---|
| public static ArgumentError. | |