Delen via


ThrottlingException Constructors

Definition

Overloads

ThrottlingException(String)

Creates an instance of ThrottlingException with a specified error message and marks it as non-transient.

ThrottlingException(ErrorCode, String)

Creates an instance of ThrottlingException with a specified ErrorCode, error message and marks it as non-transient.

ThrottlingException(SerializationInfo, StreamingContext)

Creates an instance of ThrottlingException with the SerializationInfo and StreamingContext associated with the exception.

ThrottlingException(String, Exception)

Creates an instance of ThrottlingException with a specified error message and a reference to the inner exception that caused this exception, and marks it as non-transient.

ThrottlingException(String)

Creates an instance of ThrottlingException with a specified error message and marks it as non-transient.

public ThrottlingException (string message);
new Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException : string -> Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

ThrottlingException(ErrorCode, String)

Creates an instance of ThrottlingException with a specified ErrorCode, error message and marks it as non-transient.

public ThrottlingException (Microsoft.Azure.Devices.Common.Exceptions.ErrorCode code, string message);
new Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException : Microsoft.Azure.Devices.Common.Exceptions.ErrorCode * string -> Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException
Public Sub New (code As ErrorCode, message As String)

Parameters

code
ErrorCode

The ErrorCode associated with the error.

message
String

The message that describes the error.

Applies to

ThrottlingException(SerializationInfo, StreamingContext)

Creates an instance of ThrottlingException with the SerializationInfo and StreamingContext associated with the exception.

protected ThrottlingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

ThrottlingException(String, Exception)

Creates an instance of ThrottlingException with a specified error message and a reference to the inner exception that caused this exception, and marks it as non-transient.

public ThrottlingException (string message, Exception inner);
new Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.ThrottlingException
Public Sub New (message As String, inner As Exception)

Parameters

message
String

The message that describes the error.

inner
Exception

The exception that is the cause of the current exception.

Applies to