Skip to content

Error code collision between ARTRealtimeHistoryErrorNotAttached and ARTDataQueryErrorMissingRequiredFields #2173

Description

@coderabbitai

Problem

Two error enum values share the same numeric value (3), which can cause incorrect error handling:

  • ARTRealtimeHistoryErrorNotAttached = ARTDataQueryErrorTimestampRange + 1 = 3
  • ARTDataQueryErrorMissingRequiredFields = 3

This collision is located in Source/include/Ably/ARTTypes.h around lines 190-192 and makes it impossible to reliably distinguish between these errors when comparing numeric codes.

Context

This issue was identified during code review and has been marked with a TODO comment in the code.

References

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions