Sha256: c914ee109a96248852293346da4ebbc00a040f3643e3d333de1343be3aecf8ad

Contents?: true

Size: 232 Bytes

Versions: 12

Compression:

Stored size: 232 Bytes

Contents

module ExceptionHandler
  extend ActiveSupport::Concern

  class HubspotError < StandardError; end

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

Version data entries

12 entries across 12 versions & 1 rubygems

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