{"id":19723499,"url":"https://github.com/remind101/exceptions","last_synced_at":"2025-04-29T22:30:58.470Z","repository":{"id":20446911,"uuid":"23723903","full_name":"remind101/exceptions","owner":"remind101","description":"A Ruby gem for tracking exceptions.","archived":false,"fork":false,"pushed_at":"2017-09-28T22:07:37.000Z","size":58,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":70,"default_branch":"master","last_synced_at":"2025-04-05T20:01:57.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/remind101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-06T01:47:51.000Z","updated_at":"2024-12-17T04:17:42.000Z","dependencies_parsed_at":"2022-08-28T19:11:13.377Z","dependency_job_id":null,"html_url":"https://github.com/remind101/exceptions","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fexceptions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fexceptions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fexceptions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remind101%2Fexceptions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remind101","download_url":"https://codeload.github.com/remind101/exceptions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251077508,"owners_count":21532659,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:22:24.201Z","updated_at":"2025-04-29T22:30:58.041Z","avatar_url":"https://github.com/remind101.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exceptions [![Build Status](https://travis-ci.org/remind101/exceptions.svg?branch=master)](https://travis-ci.org/remind101/exceptions)\n\nExceptions is a Ruby gem that provides the right amount of abstraction for doing exception\ntracking in Ruby.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'exceptions'\n```\n\nAnd then execute:\n\n```ruby\n$ bundle\n```\n\nOr install it yourself as:\n\n```ruby\n$ gem install exceptions\n```\n\n## Configuration\n\nExceptions provides the concept of \"backends\" that allow you to configure what\nhappens when `Exceptions.notify` is called. The following backends are provided:\n\n* **Null**: This backend does nothing. Useful in tests.\n* **Raiser**: This backend will simply raise the exception.\n* **Logger**: This backend will log the exception to stdout.\n* **Honeybadger**: This backend will send the exception to honeybadger using the [honeybadger-ruby](https://github.com/honeybadger-io/honeybadger-ruby) gem.\n* **Multi**: A meta backend to compose other backends into a single backend.\n* **LogResult**: Another meta backend that wraps an existing backend to log the result in [logfmt](https://brandur.org/logfmt).\n\n## Usage\n\n**Track an exception**\n\n```ruby\nExceptions.notify(StandardError.new(\"Boom\"))\n```\n\n**Set context**\n\n```ruby\nExceptions.context(request_id: 'dc2d304c-6276-4c1f-9f0d-cc910f4487fd')\n```\n\n**Clear context**\n\n```ruby\nExceptions.clear_context\n```\n\n## Rack\n\nRack middleware is included which can be used to catch exceptions, shuttle them off somewhere and\nraise the exception again.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fexceptions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremind101%2Fexceptions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremind101%2Fexceptions/lists"}