Example #1
0
 /// <summary>
 /// Determines whether the exception or its inner exception is of type <see cref="RequestRateExceededException"/>.
 /// It could be the inner exception because the Cosmos DB SDK wraps exceptions that are thrown inside of custom request handlers with a CosmosException.
 /// </summary>
 /// <param name="e">The exception</param>
 public static bool IsRequestRateExceeded(this Exception e)
 {
     return(e.AsRequestRateExceeded() != null);
 }