EnumerationMeow
MeowModelError
Generic errors thrown by the generator
enum MeowModelError<M> where M : BaseModel
case brokenFileReference(ObjectId)
The file cannot be found in GridFS
case cannotUpdate(M.Identifier)
case cannotValidate(reason: String)
Meow was not able to validate the database, because reason
case deletingMultiple(errors: [(ObjectId, Error)])
One or more errors occurred while mass-deleting objects. The errors
array contains the specific object identifier and error pairs.
case fileTooLarge(size: Int, maximum: Int)
A file cannot be stored because it exceeds the maximum size
case invalidValue(key: String, reason: String)
The value is invalid
case missingOrInvalidValue(key: String, expected: Any.Type, got: Any?)
The value for the given key is missing, or invalid
case referenceError(id: Any, type: M.Type)
A reference to type
with id id
cannot be resolved
case undeletableObject(reason: String)
An object cannot be deleted, because of reason
var localizedDescription: String
Retrieve the localized description for this error.