Error messages: delayed rendering with templating

Should these be defined as a static class variable instead rather than locally here?