Table of Contents

Class InvalidModelStateException

Namespace
JsonApiDotNetCore.Errors
Assembly
JsonApiDotNetCore.dll

The error that is thrown when ASP.NET ModelState validation fails.

[PublicAPI]
public sealed class InvalidModelStateException : JsonApiException, ISerializable
Inheritance
InvalidModelStateException
Implements
Inherited Members

Constructors

InvalidModelStateException(IReadOnlyDictionary<string, ModelStateEntry?>, Type, bool, IResourceGraph, Func<Type, int, Type?>?)

The error that is thrown when ASP.NET ModelState validation fails.

public InvalidModelStateException(IReadOnlyDictionary<string, ModelStateEntry?> modelState, Type modelType, bool includeExceptionStackTraceInErrors, IResourceGraph resourceGraph, Func<Type, int, Type?>? getCollectionElementTypeCallback = null)

Parameters

modelState IReadOnlyDictionary<string, ModelStateEntry>
modelType Type
includeExceptionStackTraceInErrors bool
resourceGraph IResourceGraph
getCollectionElementTypeCallback Func<Type, int, Type>