Delen via


IotHubSuspendedException Class

Definition

This exception is thrown when the IoT hub has been suspended. This is likely due to exceeding Azure spending limits. To resolve the error, check the Azure bill and ensure there are enough credits.

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

Constructors

IotHubSuspendedException(SerializationInfo, StreamingContext)

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

IotHubSuspendedException(String, String)

Creates an instance of this class with a name of the suspended IoT hub and tracking Id, and marks it as non-transient.

IotHubSuspendedException(String)

Creates an instance of this class with a name of the suspended IoT hub 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