Delen via


IotHubSerializationException Class

Definition

The exception that is thrown when IoT hub receives an invalid serialization request.

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

Constructors

IotHubSerializationException(SerializationInfo, StreamingContext)

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

IotHubSerializationException(String)

Creates an instance of this class with a specified error message 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