PreconditionFailedException Class

Definition

The exception that is thrown when a precondition set by IoT Hub is not fulfilled.

[System.Serializable]
public sealed class PreconditionFailedException : Microsoft.Azure.Devices.Common.Exceptions.IotHubException
[<System.Serializable>]
type PreconditionFailedException = class
    inherit IotHubException
Public NotInheritable Class PreconditionFailedException
Inherits IotHubException
Inheritance
PreconditionFailedException
Attributes

Constructors

PreconditionFailedException(String)

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

PreconditionFailedException(String, Exception)

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

PreconditionFailedException(String, String)

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

Properties

Code

The ErrorCode associated with the exception.

(Inherited from IotHubException)
IsTransient

Indicates if the error is transient and should be retried.

(Inherited from IotHubException)
TrackingId

The service returned tracking Id associated with this particular error.

(Inherited from IotHubException)

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

(Inherited from IotHubException)

Applies to