1 min readSep 2, 2018
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)}