Class DaprErrorDetails

java.lang.Object
io.dapr.exceptions.DaprErrorDetails

public class DaprErrorDetails extends Object
  • Constructor Details

    • DaprErrorDetails

      public DaprErrorDetails(com.google.rpc.Status grpcStatus)
    • DaprErrorDetails

      public DaprErrorDetails(List<Map<String,Object>> entries)
  • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object