Returns a StructOrError for the failure to convert the data object.
(String errorDetail)
| 35 | * Returns a {@link StructOrError} for the failure to convert the data object. |
| 36 | */ |
| 37 | public static <T> StructOrError<T> fromError(String errorDetail) { |
| 38 | return new StructOrError<>(errorDetail); |
| 39 | } |
| 40 | |
| 41 | private final String errorDetail; |
| 42 | private final T struct; |
no outgoing calls