Why not create a common Rejection
trait?
#2319
alekseysidorov
started this conversation in
Ideas
Replies: 1 comment
-
Do you have an actual use case for such a trait or is it just speculation? I'm not a fan of abstracting things more than necessary. You could also define such a trait yourself if you needed it in your own code base. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Why not create a common
Rejection
trait?At this moment, there are a lot of structs in the rejection module. All of them have
body_text
andstatus
methods. Why not create aRejection
trait for all of them?This might be helpful for generic rejection errors handling. Imagine something like following:
Beta Was this translation helpful? Give feedback.
All reactions