Class ProduceException
The exception that is thrown by the IProducer when the message cannot be produced or the message broker didn't acknowledge it.
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 |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The 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 |
---|---|---|
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 |
---|---|---|
string | message | The exception message. |
Exception | innerException | The inner exception. |