Class RequestValidationException
- Namespace
- Mailtrap.Core.Exceptions
- Assembly
- Mailtrap.Abstractions.dll
Exception which is thrown when the request passed to the Mailtrap API has an invalid format.
public sealed class RequestValidationException : MailtrapApiException, ISerializable
- Inheritance
-
RequestValidationException
- Implements
- Inherited Members
Constructors
RequestValidationException(Uri, HttpMethod, ValidationResult)
requestUri and httpMethod.
Additionally provides
validationResult for request.
public RequestValidationException(Uri resourceUri, HttpMethod httpMethod, ValidationResult validationResult)
Parameters
resourceUriUri- API endpoint that thrown exception.
httpMethodHttpMethod- HTTP method that thrown exception.
validationResultValidationResultValidation result for request.
Exceptions
- ArgumentNullException
When the
requestUriorhttpMethodis null.- ArgumentNullException
When the
validationResultis null.
Properties
ValidationResult
Gets request validation result.
public ValidationResult ValidationResult { get; }
Property Value
- ValidationResult
Request validation result.