lib/intercom/request.rb in intercom-3.7.2 vs lib/intercom/request.rb in intercom-3.7.3
- old
+ new
@@ -166,9 +166,11 @@
raise Intercom::BadRequestError.new(error_details['message'], error_context)
when "not_restorable"
raise Intercom::BlockedUserError.new(error_details['message'], error_context)
when "not_found"
raise Intercom::ResourceNotFound.new(error_details['message'], error_context)
+ when "admin_not_found"
+ raise Intercom::AdminNotFound.new(error_details['message'], error_context)
when "rate_limit_exceeded"
raise Intercom::RateLimitExceeded.new(error_details['message'], error_context)
when "custom_data_limit_reached"
raise Intercom::CDALimitReachedError.new(error_details['message'], error_context)
when 'service_unavailable'