public final 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
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getPropertyBag, getString, has, populatePropertyBag, remove, serializeJsonToByteBuffer, set, 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.