JsonError

public enum JsonError: Error

Represents all possible errors when decoding or encoding JSON.

  • unsupportedType: When the data being decoded has a type that is not supported by the driver.
  • invalidObjectKeyType: When a JSON object has a non-string key.
  • invalidLiteral: When the driver can’t convert a literal type to a valid JSON type.
  • invalidDate: When the driver can’t convert a date to or from JSON.
  • invalidBase64: When the driver cannot parse a base64 string.
  • invalidReference: When the driver try to parse an invalid @ref type.
  • Undocumented

    Declaration

    Swift

    public enum JsonError: Error
  • Undocumented

    Declaration

    Swift

    public enum JsonError: Error
  • Undocumented

    Declaration

    Swift

    public enum JsonError: Error
  • Undocumented

    Declaration

    Swift

    public enum JsonError: Error
  • Undocumented

    Declaration

    Swift

    public enum JsonError: Error
  • Declaration

    Swift

    public var description: String