Class EmailException
The exception thrown by providers and by the framework when an email cannot be sent. IsTransient distinguishes retryable failures (timeouts, rate limits, temporary service errors) from permanent ones (bad credentials, invalid addresses).
public class EmailException : Exception, ISerializable
- Inheritance
-
EmailException
- Implements
- Inherited Members
Constructors
EmailException(string, bool)
Creates an exception.
public EmailException(string message, bool isTransient = false)
Parameters
EmailException(string, Exception, bool)
Creates an exception wrapping an inner exception.
public EmailException(string message, Exception innerException, bool isTransient = false)
Parameters
Properties
IsTransient
True when the failure is transient and a retry may succeed.
public bool IsTransient { get; }