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
Problem
Two error enum values share the same numeric value (3), which can cause incorrect error handling:
ARTRealtimeHistoryErrorNotAttached=ARTDataQueryErrorTimestampRange + 1= 3ARTDataQueryErrorMissingRequiredFields= 3This collision is located in
Source/include/Ably/ARTTypes.haround 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