Class CosmosError


  • public class CosmosError
    extends Resource
    Encapsulates error related details in the Azure Cosmos DB database service.
    • Constructor Detail

      • CosmosError

        public CosmosError()
        Initialize a new instance of the Error object.
      • CosmosError

        public CosmosError​(String errorCode,
                           String message)
        Initialize a new instance of the Error object.
        Parameters:
        errorCode - the error code.
        message - the error message.
      • CosmosError

        public CosmosError​(String errorCode,
                           String message,
                           String additionalErrorInfo)
        Initialize a new instance of the Error object.
        Parameters:
        errorCode - the error code.
        message - the error message.
        additionalErrorInfo - additional error info.
    • Method Detail

      • getCode

        public String getCode()
        Gets the error code.
        Returns:
        the error code.
      • getMessage

        public String getMessage()
        Gets the error message.
        Returns:
        the error message.
      • getErrorDetails

        public String getErrorDetails()
        Gets the error details.
        Returns:
        the error details.
      • getPartitionedQueryExecutionInfo

        public String getPartitionedQueryExecutionInfo()
        Gets the partitioned query execution info.
        Returns:
        the partitioned query execution info.