Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Generic error handling #85

Conversation

viniciusccarvalho
Copy link
Contributor

Fixes #84

Make sure you have pulled the changes from spring-cloud/spring-cloud-stream#1038 before

Copy link
Contributor

@artembilan artembilan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple non-critical concerns.
You may decide do not even resolve them.
That is just IMO and my bad vision...

Everything rest LGTM

cause.printStackTrace(printWriter);
return stringWriter.getBuffer().toString();
RabbitMessageChannelErrorConfigurer getErrorConfigurer(){
return (RabbitMessageChannelErrorConfigurer) this.errorConfigurer;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be more strict here and require definitely only RabbitMessageChannelErrorConfigurer injection - no any generic BinderErrorConfigurer support.
More over you are going to catch here ClassCast if you don't provide exactly RabbitMessageChannelErrorConfigurer.

@@ -0,0 +1,163 @@
package org.springframework.cloud.stream.binder.rabbit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copyright is missed. Again the Checkstyle responsibility.
I don't tell to do that right now, but our code is getting dirtier and dirtier...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants