Delen via


ConfigurationNotFoundException Class

Definition

The exception that is thrown when the queried configuration is not available on IoT hub.

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

Constructors

ConfigurationNotFoundException(SerializationInfo, StreamingContext)

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

ConfigurationNotFoundException(String, Exception)

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

ConfigurationNotFoundException(String, String, String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration, the name of the IoT hub and the tracking Id, and marks it as non-transient.

ConfigurationNotFoundException(String, String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration and the name of the IoT hub, and marks it as non-transient.

ConfigurationNotFoundException(String)

Creates an instance of ConfigurationNotFoundException with the Id of the configuration and marks it as non-transient.

Properties

Code

The error code 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