Leafref error message

I have to add a customize message on leafref instance failures from “illegal reference” to my customized message. Is it possible?

See ConfD 6.5 UG Chapter 28.14. Error Message Customization