lib/intercom/request.rb in intercom-3.5.22 vs lib/intercom/request.rb in intercom-3.5.23
- old
+ new
@@ -161,9 +161,11 @@
raise Intercom::RateLimitExceeded.new(error_details['message'], error_context)
when 'service_unavailable'
raise Intercom::ServiceUnavailableError.new(error_details['message'], error_context)
when 'conflict', 'unique_user_constraint'
raise Intercom::MultipleMatchingUsersError.new(error_details['message'], error_context)
+ when 'resource_conflict'
+ raise Intercom::ResourceNotUniqueError.new(error_details['message'], error_context)
when nil, ''
raise Intercom::UnexpectedError.new(message_for_unexpected_error_without_type(error_details, parsed_http_code), error_context)
else
raise Intercom::UnexpectedError.new(message_for_unexpected_error_with_type(error_details, parsed_http_code), error_context)
end