CouchDBError

public struct CouchDBError: Codable, Swift.Error, CustomStringConvertible

A struct representing the JSON response from CouchDB when an error occurs.

CouchDB reference: CouchDB_Error_Status

  • Return a human readable description of the error.

    Declaration

    Swift

    public var description: String
  • id

    The Document ID.

    Declaration

    Swift

    public let id: String?
  • The error that occurred.

    Declaration

    Swift

    public let error: String
  • The HTTP status code of the error

    Declaration

    Swift

    public internal(set) var statusCode: Int = HTTPStatusCode.unknown.rawValue
  • Error reason.

    Declaration

    Swift

    public let reason: String