title: Translate error codes to string to display
body: <p>Is there a common way in C++ to translate an error code to a string to display it?</p>
  
  <p>I saw somewhere a <code>err2msg</code> function, with a big switch, but is that really the best way?</p>