GeneralErrorReason

public enum GeneralErrorReason

The possible underlying reasons a .generalError occurs.

  • base64ConversionFailed: The string cannot be converted to the base64 data format. Code 3016_4001.
  • dataConversionFailed: The data cannot be converted to a string with the given encoding. Code 3016_4002.
  • stringConversionFailed: The string cannot be converted to data with the given encoding. Code 3016_4003.
  • operationNotSupported: The operation is not supported by the current OS. Code 3016_4004.
  • decodingFailed: The data cannot be decoded to the target type. Code 3016_4005.
  • The string cannot be converted to the base64 data format. Code 3016_4001.

    Declaration

    Swift

    case base64ConversionFailed(string: String)
  • The data cannot be converted to a string with the given encoding. Code 3016_4002.

    Declaration

    Swift

    case dataConversionFailed(data: Data, encoding: String.Encoding)
  • The string cannot be converted to data with the given encoding. Code 3016_4003.

    Declaration

    Swift

    case stringConversionFailed(string: String, encoding: String.Encoding)
  • The operation is not supported by the current OS. Code 3016_4004.

    Declaration

    Swift

    case operationNotSupported(reason: String)
  • The data cannot be decoded to the target type. Code 3016_4005.

    Declaration

    Swift

    case decodingFailed(string: String, type: Any.Type)