Implement hook to render specific types in OnNextValue#2632
Implement hook to render specific types in OnNextValue#2632benjchristensen merged 3 commits intoReactiveX:1.xfrom
Conversation
|
FAILURE: Build failed with an exception.
|
There was a problem hiding this comment.
Perhaps the ErrorHandler should be statically referenced once at the top of this class?
There was a problem hiding this comment.
Can you add @Experimental for right now during the 1.0.x release cycle?
a14b9a8 to
17ff080
Compare
|
thanks @benjchristensen, I've implemented your suggestions |
There was a problem hiding this comment.
Swallowing all Throwables may cause some issue. I suggest the following approach:
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
} catch (Throwable t) {
Exceptions.throwIfFatal(t);
}
return item.getClass().getName() + ERROR_IN_RENDERING_SUFFIX;|
have to get back to this, I brainfailed and didn't run the whole test suite. Turns out under this condition the reset of the plugin is just ignored since we'll have cached the default implementation when first loading OnNextValue class in some previous test. @benjchristensen was this just a readability suggestion or do you think I should try to correctly reset the static reference to the plugin? |
Implement hook to render specific types in OnNextValue
|
awesome 😃 thanks @benjchristensen and everyone for your feedback |
as discussed in #2468, allow implementations of RxJavaErrorHandler to define a rendering behavior for safe and known types to be rendered in the stacktrace of OnNextValue.