public class WrappedResponseDto<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
T |
data
The actual payload we are sending and are "wrapping" here
|
String |
error
A message describing the error, if any.
|
| Constructor and Description |
|---|
WrappedResponseDto() |
| Modifier and Type | Method and Description |
|---|---|
static <K> WrappedResponseDto<K> |
withData(K data) |
static WrappedResponseDto<?> |
withError(String error) |
static WrappedResponseDto<?> |
withNoData() |
public T data
public String error
public static <K> WrappedResponseDto<K> withData(K data)
public static WrappedResponseDto<?> withNoData()
public static WrappedResponseDto<?> withError(String error)
Copyright © 2016–2024. All rights reserved.