I've often done this sort of formatting in the exception itself, so that the messages are consistent across all of the places where the exception is used.

Also, you use `.format` in the line above, and then `%` in this line. Seems oddly inconsistent.