-
Notifications
You must be signed in to change notification settings - Fork 133
Generic error handling #85
Generic error handling #85
Conversation
There was a problem hiding this 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; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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...
Fixes #84
Make sure you have pulled the changes from spring-cloud/spring-cloud-stream#1038 before