Sha256: 436b92d2c4df2d71d05dbb79f387f91424596de63aafcd3871bf164d0194689f

Contents?: true

Size: 233 Bytes

Versions: 44

Compression:

Stored size: 233 Bytes

Contents

module ExceptionHandler
  extend ActiveSupport::Concern

  class HubspotError < StandardError; end

  included do
    rescue_from HubspotError do |error|
      @error = error
      render template: 'contacts/index'
    end
  end
end

Version data entries

44 entries across 22 versions & 1 rubygems

Version Path
hubspot-api-client-9.0.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-9.0.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-8.0.1 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-8.0.1 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-8.0.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-8.0.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.3.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.3.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.2.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.2.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.1.1 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.1.1 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.1.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.1.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.0.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-7.0.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-6.0.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-6.0.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-5.0.0 sample-apps/contacts-app/app/controllers/concerns/exception_handler.rb
hubspot-api-client-5.0.0 sample-apps/oauth-app/app/controllers/concerns/exception_handler.rb