Package io.dapr.exceptions
Class DaprErrorDetails
java.lang.Object
io.dapr.exceptions.DaprErrorDetails
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionDaprErrorDetails
(com.google.rpc.Status grpcStatus) DaprErrorDetails
(List<Map<String, Object>> entries) -
Method Summary
-
Constructor Details
-
DaprErrorDetails
public DaprErrorDetails(com.google.rpc.Status grpcStatus) -
DaprErrorDetails
-
-
Method Details
-
get
public <T> T get(DaprErrorDetails.ErrorDetailType errorDetailType, String errAttribute, TypeRef<T> typeRef) Gets an attribute of an error detail.- Type Parameters:
T
- Type of the value to be returned.- Parameters:
errorDetailType
- Type of the error detail.errAttribute
- Attribute of the error detail.typeRef
- Type of the value expected to be returned.- Returns:
- Value of the attribute or null if not found.
-
equals
-
hashCode
public int hashCode()
-