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
ExceptionThe inner exception.
ProvisioningTransportException(SerializationInfo, StreamingContext)
Creates a new instance of the ProvisioningTransportException class.
protected ProvisioningTransportException(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe 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
stringThe exception message.
ProvisioningTransportException(string, Exception)
Creates a new instance of the ProvisioningTransportException class.
public ProvisioningTransportException(string message, Exception innerException)
Parameters
ProvisioningTransportException(string, Exception, bool)
Creates a new instance of the ProvisioningTransportException class.
public ProvisioningTransportException(string message, Exception innerException, bool isTransient)
Parameters
message
stringThe exception message.
innerException
ExceptionThe inner exception.
isTransient
boolTrue 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
stringThe exception message.
innerException
ExceptionThe inner exception.
isTransient
boolTrue if the error is transient.
errorDetails
ProvisioningErrorDetailsThe 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
stringThe exception message.
innerException
ExceptionThe inner exception.
isTransient
boolTrue if the error is transient.
trackingId
stringThe service tracking Id.
Properties
ErrorDetails
Service reported Error details. Use this when reporting a Service issue.
public ProvisioningErrorDetails ErrorDetails { get; }
Property Value
IsTransient
If true, the error is transient and the application should retry at a later time.
public bool IsTransient { get; }
Property Value
TrackingId
Service reported Tracking Id. Use this when reporting a Service issue.
public string TrackingId { get; set; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
info
SerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
context
StreamingContextThe StreamingContext that contains contextual information about the source or destination.