{"id":17996719,"url":"https://github.com/zk/clj-exceptional","last_synced_at":"2026-03-10T12:33:20.472Z","repository":{"id":1426904,"uuid":"1576144","full_name":"zk/clj-exceptional","owner":"zk","description":"Clojure client for Exceptional (http://getexceptional.com/)","archived":false,"fork":false,"pushed_at":"2013-03-27T21:20:22.000Z","size":132,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T04:48:21.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"android/platform_external_apache-http","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zk.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":"2011-04-06T07:58:15.000Z","updated_at":"2023-03-09T05:31:03.000Z","dependencies_parsed_at":"2022-08-16T13:20:16.553Z","dependency_job_id":null,"html_url":"https://github.com/zk/clj-exceptional","commit_stats":null,"previous_names":["zkim/clj-exceptional"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zk/clj-exceptional","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fclj-exceptional","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fclj-exceptional/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fclj-exceptional/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fclj-exceptional/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk","download_url":"https://codeload.github.com/zk/clj-exceptional/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk%2Fclj-exceptional/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30333511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: 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":[],"created_at":"2024-10-29T21:15:40.256Z","updated_at":"2026-03-10T12:33:20.435Z","avatar_url":"https://github.com/zk.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clj-exceptional\n\nA Clojure client for [Exceptional](http://getexceptional.com).\n\n[![Build Status](https://travis-ci.org/zkim/clj-exceptional.png)](https://travis-ci.org/zkim/clj-exceptional)\n\n## Usage\n\n### Lein\n\n```clojure\n[clj-exceptional \"0.9.0\"]\n```\n\n### Importing\n\n```clojure\n(ns foo\n  (:require [clj-exceptional :as cx]))\n\n;; or\n\n(ns foo\n  (:use cljs-exceptional))\n```\n\nFor the examples below I'll assume you're using the require method above.\n\n### Basic Usage\n\nSet your key !! IMPORTANT !!:\n\n```clojure\n(cx/key! \"exceptional_app_api_key\")\n```\n\nPost an exception (blocking):\n\n```clojure\n(cx/post-exc (Exception. \"something went wrong!\"))\n```\n\nPost an exception (non-blocking using agents):\n\n```clojure\n(cx/post-exc-async (Exception. \"something went wrong!\"))\n```\n\n\n\n### \"Catch\" Macros\n\nWrap some code (`catch-exc` returns the caught exception):\n\n```clojure\n(cx/catch-exc\n  (op-throw-exception))\n\n;; =\u003e #\u003cException\u003e\n```\n\nWrap some code (`rethrow-exc` re-throws the caught exception):\n\n```clojure\n(try\n  (cx/rethrow-exc\n    (op-throws-exception))\n  (catch Exception e (println \"Something went wrong!!!\")))\n\n;; =\u003e nil\n```\n### Ring Handler\n\nclj-exceptional contains ring handlers (`wrap-exceptional-catch` and\n`wrap-exceptional-rethrow`) that will add information from\nthe request map to the post.\n\n```clojure\n(def ring-app\n  (-\u003e routes\n      (wrap-params)\n      (wrap-file \"resources/public\")\n      (wrap-file-info)\n      (cx/wrap-exceptional-catch))\n```\n\nThis will send an exceptional post containing request parameters such\nas `:remote-addr`, `:uri`, and `:headers`.\n\n\n### Contributing\n\nOpen up an issue or send me a pull request.\n\n\n### TODO\n\n* Expose more of ring request map entries, such as `:scheme`,\n  `:content-length`, and `:port`.\n\n\n\n## License\n\nCopyright (C) 2010 Zachary Kim\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk%2Fclj-exceptional","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk%2Fclj-exceptional","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk%2Fclj-exceptional/lists"}