What kind of good approaches use c++ programmers for storing error messages?
- by Narek
Say I have a huge code and have different kinds of error messages. For that I want to have a separate place where I store error codes and error messages. For example, for an error that occured because the program could not open a file I stroe:
F001 "Can not open a file." "The same error message in another language" "The same error message in third language"
What is the best way of storing different kind of error messages and codes in a file for c++ programmer in order to use that in a programme fast and easily?
FYI I am working with Qt lib.