public class NoSuchOptionException extends IllegalStateException
Option being requested
does not exist or is not configured.| Constructor and Description |
|---|
NoSuchOptionException(String reason,
Option<?> option)
Creates a new
NoSuchOptionException. |
| Modifier and Type | Method and Description |
|---|---|
Option<?> |
getOption() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NoSuchOptionException(String reason, Option<?> option)
NoSuchOptionException.reason - the reason for the error. Set as the exception's message and retrieved with Throwable.getMessage().option - the requested Optionpublic Option<?> getOption()
Copyright © 2021. All rights reserved.