Class ProduceException
The exception that is thrown by the IProducer when the message cannot be produced or the message broker didn't acknowledge it.
Inheritance
Implements
Inherited Members
Namespace: Silverback.Messaging.Broker
Assembly: Silverback.Integration.dll
Syntax
[Serializable]
public class ProduceException : SilverbackException, ISerializable
Constructors
| Improve this doc View sourceProduceException()
Initializes a new instance of the ProduceException class.
Declaration
public ProduceException()
ProduceException(SerializationInfo, StreamingContext)
Initializes a new instance of the ProduceException class with the serialized data.
Declaration
protected ProduceException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
ProduceException(String)
Initializes a new instance of the ProduceException class with the specified message.
Declaration
public ProduceException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
ProduceException(String, Exception)
Initializes a new instance of the ProduceException class with the specified message and inner exception.
Declaration
public ProduceException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
System.Exception | innerException | The inner exception. |