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