Delen via


ServerErrorException Class

Definition

The exception that is thrown when the IoT hub returned an internal service error.

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

Remarks

This exception typically means the IoT hub service has encountered an unexpected error and is usually transient. Please review the 500xxx Internal errors guide for more information. The best course of action is to retry your operation after some time.

Constructors

ServerErrorException(ErrorCode, String)

Creates an instance of ServerErrorException with a specified ErrorCode, error message and marks it as transient.

ServerErrorException(String, Exception)

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

ServerErrorException(String)

Creates an instance of ServerErrorException with a specified error message and marks it as 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