{"id":18735061,"url":"https://github.com/irontec/json-exception-response-bundle","last_synced_at":"2025-04-12T19:12:39.948Z","repository":{"id":56993522,"uuid":"195230865","full_name":"irontec/json-exception-response-bundle","owner":"irontec","description":"Treat exceptions in JSON","archived":false,"fork":false,"pushed_at":"2024-02-15T09:31:00.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-04-12T19:12:01.388Z","etag":null,"topics":["bundle","json-exception","symfony"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"eupl-1.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irontec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-04T11:41:22.000Z","updated_at":"2022-04-10T02:23:00.000Z","dependencies_parsed_at":"2022-08-21T13:20:39.484Z","dependency_job_id":null,"html_url":"https://github.com/irontec/json-exception-response-bundle","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fjson-exception-response-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fjson-exception-response-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fjson-exception-response-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irontec%2Fjson-exception-response-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irontec","download_url":"https://codeload.github.com/irontec/json-exception-response-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618281,"owners_count":21134201,"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":["bundle","json-exception","symfony"],"created_at":"2024-11-07T15:15:39.553Z","updated_at":"2025-04-12T19:12:39.913Z","avatar_url":"https://github.com/irontec.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Json Exception Response\n\nCaptura las Exception que se generen y las formatea antes de generar el Response JSON.\n\n````bash\ncomposer require irontec/json-exception-response-bundle\n````\n\nSi el proyecto esta en modo **dev** se devuelve un parametro \"debug\" con una pequeña traza de donde se genero la excepción.\n\n````json\n{\n    \"error\": {\n        \"code\": 400,\n        \"message\": \"Error message!\",\n        \"debug\": {\n            \"file\": \"/opt/symfony/vendor/symfony/http-kernel/HttpKernel.php\",\n            \"line\": 151,\n            \"function\": \"index\",\n            \"class\": \"App\\\\Controller\\\\ExampleController\",\n            \"type\": \"-\u003e\",\n            \"args\": [\n                {}\n            ]\n        }\n    }\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firontec%2Fjson-exception-response-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firontec%2Fjson-exception-response-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firontec%2Fjson-exception-response-bundle/lists"}