Table of Contents

Class ModelAlreadyExistsException

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

Exception that is thrown if a model with the same primary key already exists. The API returns 409 Conflict for it.

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

Constructors

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

Creates an exception.

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

Parameters

modelType Type

Model type.

keyValues object[]

Primary key values of the model.

innerException Exception

Database exception that caused this one.

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