MongoError

public enum MongoError : Error

All MongoDB errors

  • Can’t create database with name

    Declaration

    Swift

    case invalidDatabase(String?)
  • The body of this message is an invalid length

    Declaration

    Swift

    case invalidBodyLength
  • We can’t do this action because we’re not yet connected

    Declaration

    Swift

    case notConnected
  • The action timed out

    Declaration

    Swift

    case timeout
  • The Database command execution failed

    Declaration

    Swift

    case commandFailure(error: Document)
  • The Database command execution failed

    Declaration

    Swift

    case commandError(error: String)
  • Thrown when the initialization of a cursor, on request of the server, failed because of missing data.

    Declaration

    Swift

    case cursorInitializationError(cursorDocument: Document)
  • The MongoDB server responded with an invalid reply

    Declaration

    Swift

    case invalidReply
  • The response with the given documents is invalid

    Declaration

    Swift

    case invalidResponse(documents: [Document])
  • Invalid chunksize

    Declaration

    Swift

    case invalidChunkSize(chunkSize: Int)
  • GridFS was asked to return a negative amount of bytes

    Declaration

    Swift

    case negativeBytesRequested(start: Int, end: Int)
  • Invalid MongoDB URI

    Declaration

    Swift

    case invalidURI(uri: String)
  • The URI misses the MongoDB Schema

    Declaration

    Swift

    case noMongoDBSchema
  • No servers available to connect to

    Declaration

    Swift

    case noServersAvailable
  • Unsupported feature (Authentication mechanisms for example)

    Declaration

    Swift

    case unsupportedFeature(String)
  • GridFS had a request for data that does not exist

    Declaration

    Swift

    case tooMuchDataRequested(contains: Int, requested: Int)
  • GridFS had a request for data that had a negative index

    Declaration

    Swift

    case negativeDataRequested
  • The received Document that contains the MongoDB server build info is invalid

    Declaration

    Swift

    case invalidBuildInfoDocument
  • MD5 file hashing in GridFS failed

    Declaration

    Swift

    case couldNotHashFile
  • A textual representation of this instance, suitable for debugging.

    Declaration

    Swift

    public var debugDescription: String