R
- response typepublic final class ResponseOrException<R> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<Throwable> |
exception() |
static <R> ResponseOrException<R> |
exception(Throwable value)
Create a new ResponseOrException with the exception
|
int |
hashCode() |
Optional<R> |
response() |
static <R> ResponseOrException<R> |
response(R value)
Create a new ResponseOrException with the response
|
public Optional<R> response()
public Optional<Throwable> exception()
public static <R> ResponseOrException<R> response(R value)
R
- Response typevalue
- responsepublic static <R> ResponseOrException<R> exception(Throwable value)
R
- Response typevalue
- exceptionCopyright © 2021. All rights reserved.