public class ConnectionResult
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionResult.ConnectionResultType |
| Constructor and Description |
|---|
ConnectionResult() |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionResult |
error(java.lang.String message) |
static ConnectionResult |
ok() |
void |
onErrorThrow(java.util.function.Function<java.lang.String,? extends java.lang.RuntimeException> errorCreation) |
public static ConnectionResult ok()
public static ConnectionResult error(java.lang.String message)
public void onErrorThrow(java.util.function.Function<java.lang.String,? extends java.lang.RuntimeException> errorCreation)