Closed Fyro-Ing closed 9 months ago
With this code, it is not required to use a custom codec.
@tsegismont It's required to have our exception without vertx exception dependency We have only service exception today and we must extends ReplyException to use custom but we need to respect contract ReplyException We can't off stacktrace & to have body we need to use debuginfo, but this not the goal
Stack traces are not transferred by the codec because we can't recreate an exception from it on the other side.
Yes of course.
But i would like to create my exception :
At this time, if i have a custom exception not extends ServiceException, i loose my informations because exceptions that not extends ServiceException are forced to ServiceException
So, at this time, i have custom exception that extends ServiceException, and send my informations with ... debuginfo, but this is not its use
With CodecManager, we can use custom exceptions ( and object), so HelperUtils#manageFailure could be simplify to Message#reply
https://github.com/vert-x3/vertx-service-proxy/blob/2ab9f4e73585163812718d12c13ef483a5f1c98f/src/main/java/io/vertx/serviceproxy/HelperUtils.java#L120