public interface Error<Reason>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Error.StringError<Reason> |
static class |
Error.ThrowableError<Reason> |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
The reason message accessor
|
Reason |
getReason()
The reason value accessor.
|
static <Reason> Error<Reason> |
of(Reason reason,
String msg)
|
static <Reason> Error<Reason> |
of(Reason reason,
Throwable throwable)
|
static <Reason> Error<Reason> of(Reason reason, Throwable throwable)
reason - the reason valuethrowable - for more contextErrorstatic <Reason> Error<Reason> of(Reason reason, String msg)
reason - the reason valuemsg - for more contextErrorReason getReason()
String getMessage()
Copyright © 2019. All rights reserved.