CosmosException(String, HttpStatusCode, Int32, String, Double) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a CosmosException
public CosmosException (string message, System.Net.HttpStatusCode statusCode, int subStatusCode, string activityId, double requestCharge);
new Microsoft.Azure.Cosmos.CosmosException : string * System.Net.HttpStatusCode * int * string * double -> Microsoft.Azure.Cosmos.CosmosException
Public Sub New (message As String, statusCode As HttpStatusCode, subStatusCode As Integer, activityId As String, requestCharge As Double)
Parameters
- message
- String
The message associated with the exception.
- statusCode
- HttpStatusCode
The HttpStatusCode associated with the exception.
- subStatusCode
- Int32
A sub status code associated with the exception.
- activityId
- String
An ActivityId associated with the operation that generated the exception.
- requestCharge
- Double
A request charge associated with the operation that generated the exception.
Applies to
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.
Azure SDK for .NET