Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve exceptions by adding request/response context and json_serialize support #32

Merged
merged 2 commits into from
Sep 8, 2023

Conversation

charrondev
Copy link
Contributor

This PR improves our exceptions in garden-http by doing the following:

  • Exceptions now extends Garden\Utils\ContextException.
  • Exceptions now have request and response data in the their context and implement JsonSerialize
  • Exceptions now have have their request path, method and response code in their message.
  • Request and Response now implement JsonSerialize

@charrondev charrondev merged commit b3990ad into master Sep 8, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant