# Rejected Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.outboxmessageretirement.rejected/)

## Rejected(string, string?) {#constructor-string-string-nullable-17e77ca5}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.outboxmessageretirement.rejected/constructors/constructor-string-string-nullable-17e77ca5/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Messaging/IOutboxMessageSource.cs#L120-L129)

```csharp
public Rejected(string reason, string? code = null)
```

The receiver durably rejected the message, with the reason and code which it reported.

### Parameters

- `reason` (`string`): The reason which the receiver reported.
- `code` (`string?`): The application-defined code which the receiver reported, if any.
