Enumerations

The following enumerations are available globally.

  • Represents errors that occur during serialization.

    See more

    Declaration

    Swift

    public enum SerializationError : Error, LocalizedError, Sendable
  • Represents API errors that occur during response transformation.

    @unchecked Sendable is used here because the associated [String: Any] JSON dictionary does not conform to Sendable in Swift’s type system. However, this is safe in practice because the dictionary is populated once at the call site during response parsing and is never mutated after the error value is constructed. All access is read-only.

    See more

    Declaration

    Swift

    public enum ApiError : Error, LocalizedError, @unchecked Sendable