lib/intercom/request.rb in intercom-3.5.16 vs lib/intercom/request.rb in intercom-3.5.17
- old
+ new
@@ -142,10 +142,10 @@
when 'unauthorized', 'forbidden', 'token_not_found'
raise Intercom::AuthenticationError.new(error_details['message'], error_context)
when "bad_request", "missing_parameter", 'parameter_invalid', 'parameter_not_found'
raise Intercom::BadRequestError.new(error_details['message'], error_context)
when "not_restorable"
- raise Intercom::BlockedUser.new(error_details['message'], error_context)
+ raise Intercom::BlockedUserError.new(error_details['message'], error_context)
when "not_found"
raise Intercom::ResourceNotFound.new(error_details['message'], error_context)
when "rate_limit_exceeded"
raise Intercom::RateLimitExceeded.new(error_details['message'], error_context)
when 'service_unavailable'