I put the messages into .properties files so that they could be managed as resource bundles. In theory, you can provide a CalciteResource_fr_FR.properties or a CalciteResource_en_US.properties or CalciteResource_en_UK.properties and override particular messages for particular locales.
I’ve never tried it, but it ought to work. Julian > On Aug 19, 2024, at 4:25 AM, Konstantin Orlov <kostyaorlo...@gmail.com> wrote: > > Hi all, > > I'm wondering if it's possible to override default validation exception > messages in calcite. > > The exhaustive enumeration of available exceptions is defined by the > `CacliteResource` interface. Each method in this interface has an > `@BaseMessage` annotation that defines a default message template for a > particular exception. I seemed that all the downstream project need to do > is to provide `CalciteResource.properties` with required overrides, but > `calcite-core.jar` already includes properties file with given name. > > Is there a way to provide overrides for default validation exception > messages? > > -- > Regards, > Konstantin Orlov