Error Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. Resource - com.
microsoft. azure. documentdb. Error
- com.
- com.
- com.
public class Error
extends Resource
Encapsulates error related details in the Azure Cosmos DB database service.
Constructor Summary
Constructor | Description |
---|---|
Error() |
Initialize a new instance of the Error object. |
Error(String jsonString) |
Initialize a new instance of the Error object from a JSON string. |
Error(String errorCode, String message) |
Initialize a new instance of the Error object. |
Error(String errorCode, String message, String additionalErrorInfo) |
Initialize a new instance of the Error object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Gets the error code. |
java.lang.String |
getErrorDetails()
Gets the error details. |
java.lang.String |
getMessage()
Gets the error message. |
java.lang.String |
getPartitionedQueryExecutionInfo()
Gets the partitioned query execution info. |
Methods inherited from JsonSerializable
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
Error
public Error()
Initialize a new instance of the Error object.
Error
public Error(String jsonString)
Initialize a new instance of the Error object from a JSON string.
Parameters:
Error
public Error(String errorCode, String message)
Initialize a new instance of the Error object.
Parameters:
Error
public Error(String errorCode, String message, String additionalErrorInfo)
Initialize a new instance of the Error object.
Parameters:
Method Details
getCode
public String getCode()
Gets the error code.
Returns:
getErrorDetails
public String getErrorDetails()
Gets the error details.
Returns:
getMessage
public String getMessage()
Gets the error message.
Returns:
getPartitionedQueryExecutionInfo
public String getPartitionedQueryExecutionInfo()
Gets the partitioned query execution info.
Returns: