How to access failure codes on event bus message replies?

66 views
Skip to first unread message

julian.or...@gmail.com

unread,
Aug 23, 2023, 10:25:37 PM8/23/23
to vert.x
While exchanging messages over the event bus, how can the requesting side get the failure code when the operation fails?. 

I need to map these failure codes to http error codes, right now I can only access the failure message with getMessage() or getLocalizedMessage().

I'm sure it must be obvious, but I just don't see it.


Thomas SEGISMONT

unread,
Aug 24, 2023, 4:55:45 AM8/24/23
to ve...@googlegroups.com
In most cases, the failure received by the client is an instance of https://vertx.io/docs/apidocs/io/vertx/core/eventbus/ReplyException.html

This object holds the failure code and type.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/307d0c40-3612-4c17-a45b-d1ab188dac07n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages