class Faraday::Response::RaiseNotionRubyError

Constants

ERROR_MAP

Public Instance Methods

on_complete(response) click to toggle source
# File lib/notion_ruby/errors.rb, line 90
def on_complete(response)
  key = response[:status].to_i
  raise ERROR_MAP[key], response if ERROR_MAP.key? key
end