MessagingException MessagingException Class

Definition

Represents the exception that is thrown for signaling messaging errors.

[Serializable]
public class MessagingException : Exception, ISerializable, _Exception<Serializable>
Public Class MessagingException
    Inherits Exception
    Implements ISerializable, _Exception
Inheritance
MessagingExceptionMessagingException
Derived
Attributes

Inherited Members

System.Exception

System.Object

Constructors

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

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

protected MessagingException(SerializationInfo info, StreamingContext context)Protected Sub New(info As SerializationInfo, context As StreamingContext)
Parameters
info
SerializationInfo SerializationInfo

The serialization information.

context
StreamingContext StreamingContext

The streaming context.

Attributes

MessagingException(String) MessagingException(String)

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

public MessagingException(string message)Public Sub New(message As String)
Parameters
message
String String

The error message that explains the reason for the exception.

Attributes

MessagingException(String, Boolean, Exception) MessagingException(String, Boolean, Exception)

Initializes a new instance of the MessagingException class.

public MessagingException(string message, bool isTransientError, Exception innerException)Public Sub New(message As String, isTransientError As Boolean, innerException As Exception)
Parameters
message
String String

The error message that explains the reason for the exception.

isTransientError
Boolean Boolean

true if the exception is transient; otherwise, false.

innerException
Exception Exception

The exception that is the cause of the current exception.

Attributes

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.

public MessagingException(string message, Exception innerException)Public Sub New(message As String, innerException As Exception)
Parameters
message
String String

The error message that explains the reason for the exception.

innerException
Exception Exception

The exception that is the cause of the current exception.

Attributes

Properties

Data Data

Gets the data associated with the exception.

public override sealed IDictionary Data { get; }Public NotOverridable Overrides ReadOnly Property Data As IDictionary
Value
IDictionary IDictionary

The data associated with the exception.

Attributes
Overrides

Detail Detail

Gets or sets the detail information of the messaging exception.

public MessagingExceptionDetail Detail { get; }Public ReadOnly Property Detail As MessagingExceptionDetail
Value
MessagingExceptionDetail MessagingExceptionDetail

The detail information of the messaging exception.

Attributes

IsTransient IsTransient

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

public bool IsTransient { get; protected set; }Public Property IsTransient As Boolean
Value
Boolean Boolean

true if the exception is transient; otherwise, false.

Attributes

Timestamp Timestamp

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

public DateTime Timestamp { get; }Public ReadOnly Property Timestamp As Date
Value
DateTime DateTime

The time at which the messaging exception occurred.

Attributes

Methods

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

Populates the serialization information with data about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)Public Overrides Sub GetObjectData(info As SerializationInfo, context As StreamingContext)
Parameters
info
SerializationInfo SerializationInfo

The serialized object data about the exception being thrown.

context
StreamingContext StreamingContext

The contextual information about the source or destinations.

Attributes
Overrides