{"id":17237817,"url":"https://github.com/tarao/perl5-plack-middleware-stacktrace-rethrowfriendly","last_synced_at":"2025-03-26T02:12:47.831Z","repository":{"id":28547502,"uuid":"32064716","full_name":"tarao/perl5-Plack-Middleware-StackTrace-RethrowFriendly","owner":"tarao","description":null,"archived":false,"fork":false,"pushed_at":"2015-03-17T02:32:16.000Z","size":192,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T23:28:02.037Z","etag":null,"topics":["perl","plack"],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarao.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2015-03-12T08:04:42.000Z","updated_at":"2015-03-17T02:32:13.000Z","dependencies_parsed_at":"2022-08-23T01:50:46.550Z","dependency_job_id":null,"html_url":"https://github.com/tarao/perl5-Plack-Middleware-StackTrace-RethrowFriendly","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fperl5-Plack-Middleware-StackTrace-RethrowFriendly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fperl5-Plack-Middleware-StackTrace-RethrowFriendly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fperl5-Plack-Middleware-StackTrace-RethrowFriendly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarao%2Fperl5-Plack-Middleware-StackTrace-RethrowFriendly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarao","download_url":"https://codeload.github.com/tarao/perl5-Plack-Middleware-StackTrace-RethrowFriendly/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245573899,"owners_count":20637674,"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":["perl","plack"],"created_at":"2024-10-15T05:43:49.695Z","updated_at":"2025-03-26T02:12:47.811Z","avatar_url":"https://github.com/tarao.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/tarao/perl5-Plack-Middleware-StackTrace-RethrowFriendly.svg?branch=master)](https://travis-ci.org/tarao/perl5-Plack-Middleware-StackTrace-RethrowFriendly)\n# NAME\n\nPlack::Middleware::StackTrace::RethrowFriendly - Display the original stack trace for rethrown errors\n\n# SYNOPSIS\n\n    use Plack::Builder;\n    builder {\n        enable \"StackTrace::RethrowFriendly\";\n        $app;\n    };\n\n# DESCRIPTION\n\nThis middleware is the same as [Plack::Middleware::StackTrace](https://metacpan.org/pod/Plack::Middleware::StackTrace) except\nthat additional information for rethrown errors are available for HTML\nstack trace.\n\nIf you catch (`eval` or `try`-`catch` for example) an error and\nrethrow (`die` or `croak` for example) it, all the errors including\nrethrown ones are visible through the throwing point selector at the\ntop of the HTML.\n\nFor example, consider the following code.\n\n    sub fail {\n        die 'foo';\n    }\n\n    sub another {\n        fail();\n    }\n\n    builder {\n        enable 'StackTrace';\n\n        sub {\n            eval { fail() }; # (1)\n            another();       # (2)\n\n            return [ 200, [ 'Content-Type' =\u003e 'text/plain' ], [ 'OK' ] ];\n        };\n    };\n\n[Plack::Middleware::StackTrace](https://metacpan.org/pod/Plack::Middleware::StackTrace) blames (1) since it is the first\nplace where `'foo'` is raised.  This behavior may be misleading if\nthe real culprit was something done in `another`.\n\n`Plack::Middleware::StackTrace::RethrowFriendly` displays stack\ntraces of both (1) and (2) in each page and (1) is selected by\ndefault.\n\n# SEE ALSO\n\n[Plack::Middleware::StackTrace](https://metacpan.org/pod/Plack::Middleware::StackTrace)\n\n# LICENSE\n\nCopyright (C) TOYAMA Nao and INA Lintaro\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nTOYAMA Nao \u003cnanto@moon.email.ne.jp\u003e\n\nINA Lintaro \u003ctarao.gnn@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarao%2Fperl5-plack-middleware-stacktrace-rethrowfriendly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarao%2Fperl5-plack-middleware-stacktrace-rethrowfriendly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarao%2Fperl5-plack-middleware-stacktrace-rethrowfriendly/lists"}