{"id":15064601,"url":"https://github.com/vgsantoniazzi/rescuable-errors","last_synced_at":"2026-02-06T00:31:01.094Z","repository":{"id":28947906,"uuid":"32473868","full_name":"vgsantoniazzi/rescuable-errors","owner":"vgsantoniazzi","description":"rescuable-errors — Build API rescuable error classes.","archived":false,"fork":false,"pushed_at":"2015-11-19T16:42:13.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-21T21:25:23.960Z","etag":null,"topics":["api","json-api","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vgsantoniazzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-18T17:30:04.000Z","updated_at":"2020-08-09T14:37:23.000Z","dependencies_parsed_at":"2022-08-20T16:50:10.223Z","dependency_job_id":null,"html_url":"https://github.com/vgsantoniazzi/rescuable-errors","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/vgsantoniazzi/rescuable-errors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Frescuable-errors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Frescuable-errors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Frescuable-errors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Frescuable-errors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vgsantoniazzi","download_url":"https://codeload.github.com/vgsantoniazzi/rescuable-errors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vgsantoniazzi%2Frescuable-errors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29140108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","json-api","rails","ruby"],"created_at":"2024-09-25T00:22:17.364Z","updated_at":"2026-02-06T00:31:01.069Z","avatar_url":"https://github.com/vgsantoniazzi.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Welcome to Rescuable Errors\n\nRescue correctly your application errors.\n\n## Getting Started\n\nFrom command line:\n\n```ruby\ngem install rescuable_errors\n```\n\nGemfile:\n\n```ruby\ngem \"rescuable_errors\"\n```\n\n## Usage\n\nYou can create errors into gem (if you use a fork) or in your application. For example, create app/errors/routing_error.rb in your application:\n\n```ruby\nmodule RescuableErrors\n  class RoutingError \u003c RescuableErrors::ApplicationError\n    def initialize\n      @code = 404\n      @status = 404\n      @class = \"RescuableErrors::RoutingError\"\n      super I18n.t(\"errors.routing\")\n    end\n  end\nend\n\n```\n\nand fail in controller with \n\n```fail RescuableErrors::RoutingError.new```. \n\nNow will automaticaly render a JSON response with status 404:\n\n```ruby\n\"error\": {\n  \"code\": 404,\n  \"class\": \"RescuableErrors::RoutingError\",\n  \"message\": \"Routing not found.\"\n}\n```\n\n## Contributing\n\nI :heart: Open source!\n\n[Follow github guides for forking a project](https://guides.github.com/activities/forking/)\n\n[Follow github guides for contributing open source](https://guides.github.com/activities/contributing-to-open-source/#contributing)\n\n## Code Status\n\n[![Build Status](https://travis-ci.org/vgsantoniazzi/rescuable-errors.svg?branch=master)](https://travis-ci.org/vgsantoniazzi/rescuable-errors)\n\n## License\n\nGem is released under the [MIT license](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvgsantoniazzi%2Frescuable-errors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvgsantoniazzi%2Frescuable-errors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvgsantoniazzi%2Frescuable-errors/lists"}