Support customizing error message.