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, toString
public 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 Option
public Option<?> getOption()
Copyright © 2022. All rights reserved.