public class CosmosError extends Resource
Constructor and 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.
|
Modifier and Type | Method and 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.
|
getETag, getId, getResourceId, getSelfLink, getTimestamp, setId, setResourceId
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public CosmosError()
public CosmosError(String errorCode, String message)
errorCode
- the error code.message
- the error message.public String getCode()
public String getMessage()
public String getErrorDetails()
public String getPartitionedQueryExecutionInfo()
Copyright © 2020 Microsoft Corporation. All rights reserved.