Table of Contents

Class ProvisioningTransportException

Namespace
Microsoft.Azure.Devices.Provisioning.Client
Assembly
Microsoft.Azure.Devices.Provisioning.Client.dll

Represents errors reported by the Provisioning Transport Handlers.

public class ProvisioningTransportException : Exception, ISerializable
Inheritance
ProvisioningTransportException
Implements
Inherited Members

Constructors

ProvisioningTransportException()

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException()

ProvisioningTransportException(Exception)

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException(Exception innerException)

Parameters

innerException Exception

The inner exception.

ProvisioningTransportException(SerializationInfo, StreamingContext)

Creates a new instance of the ProvisioningTransportException class.

protected ProvisioningTransportException(SerializationInfo info, StreamingContext context)

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.

ProvisioningTransportException(string)

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException(string message)

Parameters

message string

The exception message.

ProvisioningTransportException(string, Exception)

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException(string message, Exception innerException)

Parameters

message string

The exception message.

innerException Exception

The inner exception.

ProvisioningTransportException(string, Exception, bool)

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException(string message, Exception innerException, bool isTransient)

Parameters

message string

The exception message.

innerException Exception

The inner exception.

isTransient bool

True if the error is transient.

ProvisioningTransportException(string, Exception, bool, ProvisioningErrorDetails)

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException(string message, Exception innerException, bool isTransient, ProvisioningErrorDetails errorDetails)

Parameters

message string

The exception message.

innerException Exception

The inner exception.

isTransient bool

True if the error is transient.

errorDetails ProvisioningErrorDetails

The service error details.

ProvisioningTransportException(string, Exception, bool, string)

Creates a new instance of the ProvisioningTransportException class.

public ProvisioningTransportException(string message, Exception innerException, bool isTransient, string trackingId)

Parameters

message string

The exception message.

innerException Exception

The inner exception.

isTransient bool

True if the error is transient.

trackingId string

The service tracking Id.

Properties

ErrorDetails

Service reported Error details. Use this when reporting a Service issue.

public ProvisioningErrorDetails ErrorDetails { get; }

Property Value

ProvisioningErrorDetails

IsTransient

If true, the error is transient and the application should retry at a later time.

public bool IsTransient { get; }

Property Value

bool

TrackingId

Service reported Tracking Id. Use this when reporting a Service issue.

public string TrackingId { get; set; }

Property Value

string

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

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.