How to log an c++ exception -


Do you know how can I log exceptions? Message is currently printed on the catch statement, but I do not understand why manage. (; Equals & amp; acc acc, commonman, comando, runcomand, login, and; & amp;; party; comandosS, runcomomandosuper, true)

  Manager.Gere try {; } Hold (...) {log ("enter error" *****); } Perif :: Gere (cstring * equals, cstring * acc, hand handle, handle handle handle, RunComando, log & amp; login, cstring * party handle comandosS handle RunComandosSuper, bool first) {log-> LogD ("Perif :: Enter ******"); // It does not print}  

The exceptions which you first need Manage Gear can throw .
Then hold specially grip (first EXEXGRESSERAPRO F) and when you capture all possible exceptions, you will know that manage. What has failed in .

  hold (first concept and a) {log  & Lt; "Failed because first exception \ n"; } Catch (secondexception and f) {log  & Lt; "Failed because the second is \ n"; }  

After this, and if you are lucky then you can include some extra information about the accident, by throwing out Manage.Gere . / P>

  hold (first concept and exc) {log & lt; & Lt; "Exceptions due to failure:" & lt; & Lt; Exc.what () & lt; & Lt; "\ N"; }  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -