lib/twilio-ruby/framework/page.rb in twilio-ruby-5.0.0.rc19 vs lib/twilio-ruby/framework/page.rb in twilio-ruby-5.0.0.rc20

- old
+ new

@@ -26,11 +26,11 @@ @records = self.load_page(payload) end def process_response(response) if response.status_code != 200 - raise Twilio::REST::TwilioException.new('Unable to fetch page', response) + raise Twilio::REST::TwilioError.new('Unable to fetch page', response) end response.body end @@ -43,11 +43,11 @@ if key.size == 1 return payload[key.first] end end - raise Twilio::REST::TwilioException.new('Page Records can not be deserialized') + raise Twilio::REST::TwilioError.new('Page Records can not be deserialized') end def previous_page_url if @payload['meta'] && @payload['meta']['previous_page_url'] return URI.parse(@payload['meta']['previous_page_url']).request_uri @@ -67,10 +67,10 @@ nil end def get_instance(payload) - raise Twilio::REST::TwilioException.new('Page.get_instance() must be implemented in the derived class') + raise Twilio::REST::TwilioError.new('Page.get_instance() must be implemented in the derived class') end def previous_page return nil unless self.previous_page_url