您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

MessagingException Class

定义

Represents the exception that is thrown for signaling messaging errors.

public class MessagingException : Exception
继承
System.Exception
MessagingException
派生

构造函数

MessagingException(String)

Initializes a new instance of the MessagingException class with a specified error message.

MessagingException(SerializationInfo, StreamingContext)

Initializes a new instance of the MessagingException class with serialization information and streaming context.

MessagingException(String, Exception)

Initializes a new instance of the MessagingException class with a specified error message and a reference to the inner exception that is the cause of this exception.

MessagingException(String, Boolean, Exception)

Initializes a new instance of the MessagingException class.

属性

Data

Gets the data associated with the exception.

Detail

Gets or sets the detail information of the messaging exception.

IsTransient

Gets or sets a value indicating whether the exception is transient. Check this property to determine if the operation should be retried.

Timestamp

Gets or sets the time at which the messaging exception occurred.

方法

GetObjectData(SerializationInfo, StreamingContext)

Populates the serialization information with data about the exception.

Extension Methods

CheckIotHubErrorCode(Exception, ErrorCode[])
DisablePrepareForRethrow(Exception)
GetReferenceCode(Exception)
IsFatal(Exception)
PrepareForRethrow(Exception)
ToStringSlim(Exception)
Unwind(Exception)
Unwind(Exception, Type[])
Unwind<TException>(Exception)
IsWrappedExceptionTransient(Exception)
FindInnerException<T>(Exception)