Class ModelInUseException
- Namespace
- Magicalizer.Domain.Services.Abstractions
- Assembly
- Magicalizer.Domain.Services.Abstractions.dll
Exception that is thrown if a model can't be deleted, as the database restricts it (e.g. other models reference it). The API returns 409 Conflict for it.
public class ModelInUseException : Exception, ISerializable
- Inheritance
-
ModelInUseException
- Implements
- Inherited Members
Constructors
ModelInUseException(Type, object?[], Exception?)
Creates an exception.
public ModelInUseException(Type modelType, object?[] keyValues, Exception? innerException = null)
Parameters
modelTypeTypeModel type.
keyValuesobject[]Primary key values of the model.
innerExceptionExceptionDatabase 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; }