MCPcopy Create free account
hub / github.com/grpc/grpc-java / fromError

Method fromError

xds/src/main/java/io/grpc/xds/ConfigOrError.java:35–37  ·  view source on GitHub ↗

Returns a ConfigOrError for the failure to convert the data object.

(String errorDetail)

Source from the content-addressed store, hash-verified

33 * Returns a {@link ConfigOrError} for the failure to convert the data object.
34 */
35 static <T> ConfigOrError<T> fromError(String errorDetail) {
36 return new ConfigOrError<>(errorDetail);
37 }
38
39 final String errorDetail;
40 final T config;

Calls

no outgoing calls

Tested by

no test coverage detected