public class UnrecognizedOptionException extends ParseException
| Constructor | Description |
|---|---|
UnrecognizedOptionException(String message) |
Constructs a new
UnrecognizedArgumentException with the specified detail message. |
UnrecognizedOptionException(String message,
String option) |
Constructs a new
UnrecognizedArgumentException with the specified option and detail message. |
| Modifier and Type | Method | Description |
|---|---|---|
String |
getOption() |
Gets the unrecognized option.
|
wrapaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic UnrecognizedOptionException(String message)
UnrecognizedArgumentException with the specified detail message.message - the detail message.public UnrecognizedOptionException(String message, String option)
UnrecognizedArgumentException with the specified option and detail message.message - the detail message.option - the unrecognized option.Copyright © 2002-2025 The Apache Software Foundation. All rights reserved.Apache Commons CLI | Issue management | Source repository