PoisonMessageException Constructors

Definition

Initializes a new instance of the PoisonMessageException class.

Overloads

PoisonMessageException()

Initializes a new instance of the PoisonMessageException class.

PoisonMessageException(String)

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

PoisonMessageException(SerializationInfo, StreamingContext)

Initializes a new instance of the PoisonMessageException class with serialized data.

PoisonMessageException(String, Exception)

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

PoisonMessageException()

Initializes a new instance of the PoisonMessageException class.

C#
public PoisonMessageException();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PoisonMessageException(String)

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

C#
public PoisonMessageException(string message);

Parameters

message
String

The message that describes the error.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PoisonMessageException(SerializationInfo, StreamingContext)

Initializes a new instance of the PoisonMessageException class with serialized data.

C#
protected PoisonMessageException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PoisonMessageException(String, Exception)

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

C#
public PoisonMessageException(string message, Exception innerException);

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1