Class RateLimitApiException
- Namespace
- Auth0.Core.Exceptions
- Assembly
- Auth0.Core.dll
Represents errors caused by rate limits being exceeded when making API calls.
[Serializable]
public class RateLimitApiException : ApiException, ISerializable
- Inheritance
-
RateLimitApiException
- Implements
- Inherited Members
Constructors
RateLimitApiException()
Initializes a new instance of the RateLimitApiException class.
public RateLimitApiException()
RateLimitApiException(RateLimit, ApiError)
Initializes a new instance of the RateLimitApiException class with a specified rateLimit
.
public RateLimitApiException(RateLimit rateLimit, ApiError apiError = null)
Parameters
rateLimit
RateLimitRateLimit received on the API call that failed.
apiError
ApiErrorApiError received on the API call that failed.
RateLimitApiException(SerializationInfo, StreamingContext)
protected RateLimitApiException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
serializationInfo
SerializationInfostreamingContext
StreamingContext
RateLimitApiException(string)
Initializes a new instance of the RateLimitApiException class with a specified error message.
public RateLimitApiException(string message)
Parameters
message
stringThe error message that explains the reason for the exception.
RateLimitApiException(string, Exception)
Initializes a new instance of the RateLimitApiException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public RateLimitApiException(string message, Exception innerException)
Parameters
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Properties
ApiError
Optional ApiError from the failing API call.
public ApiError ApiError { get; }
Property Value
RateLimit
RateLimit as determined by the server.
public RateLimit RateLimit { get; }