Class EmptyResponseException
- Namespace
- Mailtrap.Core.Exceptions
- Assembly
- Mailtrap.Abstractions.dll
Exception which is thrown when response received from the Mailtrap API has no content.
public sealed class EmptyResponseException : MailtrapApiException, ISerializable
- Inheritance
-
EmptyResponseException
- Implements
- Inherited Members
Constructors
EmptyResponseException(Uri, HttpMethod)
Initializes a new instance of the exception with failed API details,
defined by requestUri
and httpMethod
.
public EmptyResponseException(Uri resourceUri, HttpMethod httpMethod)
Parameters
resourceUri
UrihttpMethod
HttpMethodHTTP method that thrown exception.
Exceptions
- ArgumentNullException
When the
requestUri
orhttpMethod
is null.