Share via


ServerErrorException Class

Definition

The exception that is thrown when the IoT Hub returned an error code.

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

Constructors

ServerErrorException()

Initializes a new instance of the ServerErrorException class.

ServerErrorException(String, Exception)

Initializes a new instance of the ServerErrorException class.

ServerErrorException(String)

Initializes a new instance of the ServerErrorException 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