Add some way to allow mapping of error messages to custom blocks to allow finer grained control of error rendering.