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

Custom error class #418

Closed
wants to merge 2 commits into from
Closed

Custom error class #418

wants to merge 2 commits into from

Conversation

mtuchi
Copy link
Collaborator

@mtuchi mtuchi commented Oct 23, 2023

Summary

Add custom request error class

Ref #405

Review Checklist

Before merging, the reviewer should check the following items:

  • Does the PR do what it claims to do?
  • Are there any unit tests? Should there be?
  • Is there a changeset associated with this PR? Should there be? Note that
    dev only changes don't need a changeset.

@mtuchi mtuchi changed the title 405 custom error class Custom error class Oct 23, 2023
@mtuchi mtuchi marked this pull request as ready for review October 23, 2023 12:24
@josephjclark
Copy link
Collaborator

Hmm. Not sure about this one. It feels like a bit of a pointless refactor to be honest.

What I was looking for was a re-usable, formally defined and easy to use Error class. I was hoping maybe it would handle the generation of the error message, maybe combining a generic error string with a the mapped message. I was hoping some of this functionality would be unit tested.

I think we need to go back to the drawing board on this. Low priority. Let me think about it.

@josephjclark
Copy link
Collaborator

Closing this until I can work out whether it's worth the effort to push this further

@mtuchi mtuchi deleted the 405-custom-error-class branch March 20, 2024 08:48
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.

2 participants