CommandError
public struct CommandError : MongoServerError
Thrown when commands experience errors on the server that prevent execution.
-
A numerical code identifying the error.
Declaration
Swift
public let code: ServerErrorCode -
A human-readable string identifying the error code.
Declaration
Swift
public let codeName: String -
A message from the server describing the error.
Declaration
Swift
public let message: String -
Labels that may describe the context in which this error was thrown.
Declaration
Swift
public let errorLabels: [String]? -
Declaration
Swift
public var errorDescription: String? { get }
View on GitHub
Install in Dash
CommandError Structure Reference