Skip to content

Commit af6b4ff

Browse files
authored
Merge pull request #3063 from destan/patch-1
Clarify that having a custom error handler disables auto send to DLQ
2 parents 3f8b700 + 9b1fbfb commit af6b4ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/modules/ROOT/pages/spring-cloud-stream/overview-error-handling.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ While acceptable in some cases, for most cases, it is not, and we need some reco
4848

4949
In the previous section we mentioned that by default messages that resulted in error are effectively logged and dropped. The framework also exposes mechanism for you
5050
to provide custom error handler (i.e., to send notification or write to database, etc). You can do so by adding `Consumer` that is specifically designed to accept `ErrorMessage` which aside from all the information about the error (e.g., stack trace etc) contains the original message (the one that triggered the error).
51-
NOTE: Custom error handler is mutually exclusive with framework provided error handlers (i.e., logging and binder error handler - see previous section) to ensure that they do not interfere.
51+
52+
NOTE: Custom error handler is mutually exclusive with framework provided error handlers (i.e., logging error handler and binder specific error handler - see previous section) to ensure that they do not interfere. When you provide a custom error handler, sending failed messages to DLQ won't work even if it is configured to do so.
5253

5354
[source,java]
5455
----

0 commit comments

Comments
 (0)