Skip to content

Commit 84688bf

Browse files
committed
docs: Note decorator exception propagation in README
1 parent 6fceecb commit 84688bf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,9 @@ OpenApiServer.builder()
577577

578578
Decorators run inside the interceptor's `ScopedValue` binding (the decorator transforms the
579579
`Response` returned by `next.proceed()`, which is still on the call stack), so
580-
`CORRELATION_ID.get()` / `TENANT_ID.get()` see the bound values.
580+
`CORRELATION_ID.get()` / `TENANT_ID.get()` see the bound values. If a decorator throws, the
581+
exception propagates through any wrapping interceptors before reaching the `ExceptionFilter`, so
582+
interceptors that catch around `next.proceed()` will observe decorator failures.
581583

582584
A handler in this setup is just business logic:
583585

0 commit comments

Comments
 (0)