I want to define a tripartite `Result` type which represents success, expected failure and unexpected failure (not for the first time I've tried but I have union types now!). It would be nice if I could find three equal-length words which convey these concepts. Which do you like?
-
-
Scala's stdlib and Akka have preferred to unknown exceptions as being faults, and to errors as being known problems. But as examples Java, and many Java libraries, including org.reactivestreams.Subscriber, Flow.Subscriber and RxJava do not subscribe to this definition.
-
Or an alternative definition: - Fault is a code/system problem (HTTP 5xx) - Error is an input problem (HTTP 4xx) I don't necessarily subscribe to it, but might be help to think of input vs output.
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.