Sep 2, 2018 · 1 min read
If you mean custom Error object is your own subclass and you want to alter the error, just allocate it in catch block and then pass it.
// Pseudo Swift
catch _ { let customError = CustomError()
observer.onError(customError)}
If you mean custom Error object is your own subclass and you want to alter the error, just allocate it in catch block and then pass it.
// Pseudo Swift
catch _ { let customError = CustomError()
observer.onError(customError)}