Top Description Fields Constructors Methods
io.r2dbc.spi

public Class NoSuchOptionException

extends IllegalStateException
Class Inheritance

Exception thrown by various accessor methods to indicate that the Option being requested does not exist or is not configured.
Since
0.9

Field Summary

Modifier and TypeField and Description
private final Option<?>

Constructor Summary

AccessConstructor and Description
public
NoSuchOptionException(String
the reason for the error. Set as the exception's message and retrieved with getMessage().
reason
,
Option<?>
the requested Option
option
)

Creates a new NoSuchOptionException.

Method Summary

Modifier and TypeMethod and Description
public Option<?>

Field Detail

optionback to summary
private final Option<?> option

Constructor Detail

NoSuchOptionExceptionback to summary
public NoSuchOptionException(String reason, Option<?> option)

Creates a new NoSuchOptionException.

Parameters
reason:String

the reason for the error. Set as the exception's message and retrieved with getMessage().

option:Option<?>

the requested Option

Method Detail

getOptionback to summary
public Option<?> getOption()