When a library needs to communicate an error status, to be handled
only by an initial caller down in the task or a success, the Result
generic type from the Rust library is convenient.
If PHP doesn't have the generics and Rust-like enum, we can at least
provide a base class Result, with two concrete implementations:
- Err for exceptions
- Ok for actual values