Sha256: feef7e8231c8da4ebd34517fdec613432f76a1fa5004148e18e5bc520db95ebd

Contents?: true

Size: 460 Bytes

Versions: 12

Compression:

Stored size: 460 Bytes

Contents

class HandledController < ActionController::Base
  protect_from_forgery with: :exception

  def index
    render json: {}
  end

  def unthrown
    Bugsnag.notify(RuntimeError.new("handled unthrown error"))
    render json: {}
  end

  def thrown
    begin
      generate_unhandled_error
    rescue Exception => e
      Bugsnag.notify(e)
    end
    render json: {}
  end

  def string_notify
    Bugsnag.notify("handled string")
    render json: {}
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bugsnag-6.15.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.14.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.13.1 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.13.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.12.2 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.12.1 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.12.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.11.1 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.11.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.10.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.9.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb
bugsnag-6.8.0 features/fixtures/rails4/app/app/controllers/handled_controller.rb