Adds exception codes to the exception data in NormalizeFormatter

I wasn't sure if this was just an oversight, or if there was a specific reason for code to not be included. Feel free to close with an explanation if this doesn't seem like a good change.

Thanks for considering it!