Provide access to errorContext when generating a validation error message.