Extract a convention for localised custom errors