Search Results for

    Show / Hide Table of Contents

    Class ApiValidationException

    Thrown when the API returns HTTP 422 (Unprocessable Entity) with structured validation errors.

    Inheritance
    object
    Exception
    ApiException
    ApiValidationException
    Implements
    ISerializable
    Inherited Members
    ApiException.StatusCode
    ApiException.Method
    ApiException.Url
    ApiException.ResponseBody
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.ReferenceEquals(object, object)
    Namespace: Seclai.Exceptions
    Assembly: Seclai.dll
    Syntax
    public sealed class ApiValidationException : ApiException, ISerializable

    Constructors

    ApiValidationException(HttpStatusCode, string, Uri, string?, HttpValidationError?)

    Creates an ApiValidationException with the parsed validation error details.

    Declaration
    public ApiValidationException(HttpStatusCode statusCode, string method, Uri url, string? responseBody, HttpValidationError? validation)
    Parameters
    Type Name Description
    HttpStatusCode statusCode
    string method
    Uri url
    string responseBody
    HttpValidationError validation

    Properties

    Errors

    Convenience accessor for the individual validation errors.

    Declaration
    public IReadOnlyList<ValidationError> Errors { get; }
    Property Value
    Type Description
    IReadOnlyList<ValidationError>

    Validation

    The parsed validation error, if the response body could be deserialized.

    Declaration
    public HttpValidationError? Validation { get; }
    Property Value
    Type Description
    HttpValidationError

    Implements

    ISerializable
    In this article
    Back to top Generated by DocFX