Package com.azure.data.cosmos
Class CosmosError
- java.lang.Object
-
- com.azure.data.cosmos.JsonSerializable
-
- com.azure.data.cosmos.Resource
-
- com.azure.data.cosmos.CosmosError
-
public class CosmosError extends Resource
Encapsulates error related details in the Azure Cosmos DB database service.
-
-
Constructor Summary
Constructors Constructor Description CosmosError()
Initialize a new instance of the Error object.CosmosError(String errorCode, String message)
Initialize a new instance of the Error object.CosmosError(String errorCode, String message, String additionalErrorInfo)
Initialize a new instance of the Error object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
Gets the error code.String
getErrorDetails()
Gets the error details.String
getMessage()
Gets the error message.String
getPartitionedQueryExecutionInfo()
Gets the partitioned query execution info.-
Methods inherited from class com.azure.data.cosmos.Resource
etag, id, id, resourceId, resourceId, selfLink, timestamp
-
Methods inherited from class com.azure.data.cosmos.JsonSerializable
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
-
-
-
-
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.
-
-