Open adelburekovic opened 7 years ago
I guess it's done this way on purpose. oClockError inherits from Error, so as far as I know you can return the oClockerError. But you still have the flexibility to return the default error that could happen while performing json serialisation etc..
However I'm puzzled why oClockerError
starts with a lowercased letter.
please don't assign people to "issues" like this
I'm puzzled why
because (at the time) it looked better, since you can't put an apostrophe in the name
@adelburekovic yes, it should be the project specific error type
Is there any specific reason why the second parameter in NetworkCompletion typealias is
Error
and notoClockError
? If it wasoClockError
we could show more detailed error to the user depending on the case of the enum.