Closed gabro closed 8 years ago
I'm currently experiencing this very issue.
Does WebError
really needs to be defined as sealed
?
Each web service handle errors in its own way, I don't think it makes sense to force a predefined structure.
Ok... we're losing control on MatchError
, but this lack of flexibility is really frustrating.
Another solution would be to create a "free text error", but I don't think it's safer than a run-time MatchError
.
Closed in https://github.com/buildo/nozzle/pull/24
requirements
The WebError family is rather arbitrary. We should allow defining custom errors.