Support customizing error messages.