Condividi tramite


IotHubException Constructors

Definition

Overloads

IotHubException()

Creates an instance of this class with an empty error message.

IotHubException(Exception)

Creates an instance of this class with an empty error message and a reference to the inner exception that caused this exception.

IotHubException(String)

Creates an instance of this class with the supplied error message and marks it as non-transient.

IotHubException(SerializationInfo, StreamingContext)

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

IotHubException(String, Boolean)

Creates an instance of this class with the supplied error message and a flag indicating if the error was transient.

IotHubException(String, Exception)

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

IotHubException(String, String)

Creates an instance of this class with the supplied error message and tracking Id, and marks it as non-transient.

IotHubException(String, Boolean, String)

Creates an instance of this class with the supplied error message, tracking Id and a flag indicating if the error was transient.

IotHubException(String, Exception, Boolean)

Creates an instance of this class with a specified error message, a reference to the inner exception that caused this exception and a flag indicating if the error was transient.

IotHubException(String, Exception, Boolean, String)

Creates an instance of this class with a specified error message, a reference to the inner exception that caused this exception, a flag indicating if the error was transient and the service returned tracking Id associated with this particular error.

IotHubException()

Creates an instance of this class with an empty error message.

public IotHubException ();
Public Sub New ()

Applies to

IotHubException(Exception)

Creates an instance of this class with an empty error message and a reference to the inner exception that caused this exception.

public IotHubException (Exception innerException);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : Exception -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Public Sub New (innerException As Exception)

Parameters

innerException
Exception

The exception that is the cause of the current exception.

Applies to

IotHubException(String)

Creates an instance of this class with the supplied error message and marks it as non-transient.

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

Parameters

message
String

The message that describes the error.

Applies to

IotHubException(SerializationInfo, StreamingContext)

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

protected IotHubException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
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

IotHubException(String, Boolean)

Creates an instance of this class with the supplied error message and a flag indicating if the error was transient.

public IotHubException (string message, bool isTransient);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : string * bool -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Public Sub New (message As String, isTransient As Boolean)

Parameters

message
String

The message that describes the error.

isTransient
Boolean

Indicates if the error is transient and should be retried.

Applies to

IotHubException(String, Exception)

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

public IotHubException (string message, Exception innerException);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : string * Exception -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

IotHubException(String, String)

Creates an instance of this class with the supplied error message and tracking Id, and marks it as non-transient.

public IotHubException (string message, string trackingId);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : string * string -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Public Sub New (message As String, trackingId As String)

Parameters

message
String

The message that describes the error.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to

IotHubException(String, Boolean, String)

Creates an instance of this class with the supplied error message, tracking Id and a flag indicating if the error was transient.

public IotHubException (string message, bool isTransient, string trackingId);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : string * bool * string -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Public Sub New (message As String, isTransient As Boolean, trackingId As String)

Parameters

message
String

The message that describes the error.

isTransient
Boolean

Indicates if the error is transient and should be retried.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to

IotHubException(String, Exception, Boolean)

Creates an instance of this class with a specified error message, a reference to the inner exception that caused this exception and a flag indicating if the error was transient.

protected IotHubException (string message, Exception innerException, bool isTransient);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : string * Exception * bool -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Protected Sub New (message As String, innerException As Exception, isTransient As Boolean)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

isTransient
Boolean

Indicates if the error is transient and should be retried.

Applies to

IotHubException(String, Exception, Boolean, String)

Creates an instance of this class with a specified error message, a reference to the inner exception that caused this exception, a flag indicating if the error was transient and the service returned tracking Id associated with this particular error.

protected IotHubException (string message, Exception innerException, bool isTransient, string trackingId);
new Microsoft.Azure.Devices.Client.Exceptions.IotHubException : string * Exception * bool * string -> Microsoft.Azure.Devices.Client.Exceptions.IotHubException
Protected Sub New (message As String, innerException As Exception, isTransient As Boolean, trackingId As String)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

isTransient
Boolean

Indicates if the error is transient and should be retried.

trackingId
String

The service returned tracking Id associated with this particular error.

Applies to