MessagingException MessagingException MessagingException Class

Definition

Represents the exception that is thrown for signaling messaging errors.

public class MessagingException : Exception
type MessagingException = class
    inherit Exception
Public Class MessagingException
Inherits Exception
Inheritance
MessagingExceptionMessagingExceptionMessagingException
Derived

Constructors

MessagingException(String) MessagingException(String) MessagingException(String)

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

MessagingException(SerializationInfo, StreamingContext) MessagingException(SerializationInfo, StreamingContext) MessagingException(SerializationInfo, StreamingContext)

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

MessagingException(String, Exception) MessagingException(String, Exception) 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) MessagingException(String, Boolean, Exception) MessagingException(String, Boolean, Exception)

Initializes a new instance of the MessagingException class.

Properties

Data Data Data

Gets the data associated with the exception.

Detail Detail Detail

Gets or sets the detail information of the messaging exception.

IsTransient IsTransient IsTransient

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

Timestamp Timestamp Timestamp

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

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Populates the serialization information with data about the exception.

Extension Methods

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

Applies to