Share via


UnauthorizedException Class

Definition

The exception that is thrown if the current operation was not authorized.

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

Constructors

UnauthorizedException()

Initializes a new instance of the UnauthorizedException class.

UnauthorizedException(String, Exception)

Initializes a new instance of the UnauthorizedException class.

UnauthorizedException(String)

Initializes a new instance of the UnauthorizedException class.

Properties

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 System.Runtime.Serialization.SerializationInfo with information about the exception. Use this to set IsTransient and TrackingId to the serialized object data.

(Inherited from IotHubException)

Applies to