When an operation fails, the DFS infrastructure throws an exception. The exception includes a message and possibly inner exceptions with further messages regarding the cause of the error. I'd like to convert those exceptions into error codes. The codes would then be translated by our app to appropriate messages, in the language currently used by our app. In addition, being able to recognize the root of the error will allow me to add additional information, such as the name of an inaccessible content file which should have been transferred to the content server. I can examine the messages in the exceptions I get, but I'm not sure I can trust their text - will they always be in English? will the wording never be changed?
So, is there any list of all possible errors, or any other means of converting error messages into error IDs?