public class Error
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
reason
Details what went wrong.
|
| Constructor and Description |
|---|
Error()
Empty constructor for (de-)serialisation.
|
Error(java.lang.String reason)
Convenience constructor to set the reason for the error.
|
| Modifier and Type | Method and Description |
|---|---|
static <R> util.object.Either<Error,R> |
error(java.lang.String reason)
Utility method to create a left
Either with an Error. |