public CommandRejected(Guid commandId, RejectReasons reasons) : base(commandId) { Argument.RequiresNotNull(reasons, nameof(reasons)); this.Reasons = reasons; }
public CommandResult(RejectReasons reasons) { Accepted = false; RejectReasons = reasons; }
/// <summary> /// Initializes a new instance of the Unauthorized Sender Exception /// </summary> /// <param name="routableMessage">The Routable Message</param> /// <param name="rejectReason">The reason why the message was rejected. Valid values are at <see cref="RejectReasons"/>.</param> /// <param name="innerException">The inner exception</param> public UnauthorizedSenderException(RoutableMessage routableMessage, RejectReasons rejectReason, Exception innerException) : base($"The IP Address {routableMessage?.IPAddress} is not authorized to send messages thru the SMTP Router. Reason: {Enum.GetName(typeof(RejectReasons), rejectReason)}. You can add the IP Address to the AcceptedIPAddress Collection on the Router or tweak the message by adding the header 'SmtpRouter-Header-ForceRouting'.", routableMessage, innerException) { }
/// <summary> /// Initializes a new instance of the Unauthorized Sender Exception /// </summary> /// <param name="routableMessage">The Routable Message</param> /// <param name="rejectReason">The reason why the message was rejected. Valid values are at <see cref="RejectReasons"/>.</param> public UnauthorizedSenderException(RoutableMessage routableMessage, RejectReasons rejectReason) : this(routableMessage, rejectReason, null) { }
public CommandRejected(Guid commandId, RejectReasons reasons) : base(commandId) { Argument.RequiresNotNull(reasons, nameof(reasons)); this.Reasons = reasons; }
public RejectException(RejectReasons reasons) { this.Reasons = reasons; }