I was wondering when stabilised, if the new MetaSerializable mechanism in Serialization would be viable approach for custom exception self-registration when used with the full-stack compiler plugin?
r
Robert Jaros
09/18/2022, 2:47 PM
I think it will be possible to do this. It should even be possible right now (but less performant) - the plugin could just search for all
@Serializable
classes inherited from
AbstractServiceException
and register them.
Robert Jaros
09/18/2022, 2:48 PM
Please fill an issue with this feature
Robert Jaros
10/05/2022, 10:23 AM
I've implemented
@KVServiceException
using MetaSerializable and fully automatic registration works perfectly. It will be available in the next release.