Delen via


PreconditionFailedException Constructors

Definition

Overloads

PreconditionFailedException(String)

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

PreconditionFailedException(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.

PreconditionFailedException(String, String)

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

PreconditionFailedException(String)

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

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

Parameters

message
String

The message that describes the error.

Applies to

PreconditionFailedException(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 PreconditionFailedException (string message, Exception innerException);
new Microsoft.Azure.Devices.Common.Exceptions.PreconditionFailedException : string * Exception -> Microsoft.Azure.Devices.Common.Exceptions.PreconditionFailedException
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

PreconditionFailedException(String, String)

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

public PreconditionFailedException (string message, string trackingId);
new Microsoft.Azure.Devices.Common.Exceptions.PreconditionFailedException : string * string -> Microsoft.Azure.Devices.Common.Exceptions.PreconditionFailedException
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