Defines template message for several exceptions