Table of Contents

Class ModelNotFoundException

Namespace
Magicalizer.Domain.Services.Abstractions
Assembly
Magicalizer.Domain.Services.Abstractions.dll

Exception that is thrown if a model to edit or delete doesn't exist (or isn't available through the query prefilters). The API returns 404 Not Found for it.

public class ModelNotFoundException : Exception, ISerializable
Inheritance
ModelNotFoundException
Implements
Inherited Members

Constructors

ModelNotFoundException(Type, object?[], Exception?)

Creates an exception.

public ModelNotFoundException(Type modelType, object?[] keyValues, Exception? innerException = null)

Parameters

modelType Type

Model type.

keyValues object[]

Primary key values of the model.

innerException Exception

Exception that caused this one (e.g. the database one if the model is deleted concurrently).

Properties

KeyValues

Primary key values of the model.

public object?[] KeyValues { get; }

Property Value

object[]

ModelType

Model type.

public Type ModelType { get; }

Property Value

Type