Domanda

Is there an API for translating ExceptionCode:s in an ExceptionRecord to a readable message like FormatMessage for regular errors.

È stato utile?

Soluzione

There is no built-in function for this.

Many people are doing it manually:

fostlib::exceptions::structured::structured in: http://svn.felspar.com/public/fost-base/tags/4.12.12.44490/fost-base/Cpp/fost-core/exception-win.cpp

MyUnHandledExceptionFilter in: http://openholdembot.googlecode.com/svn/trunk/ManualMode/debug.cpp

GetExceptionString in: http://subversion.assembla.com/svn/ub-source113/Standard%20Gaming%20Platform/ExceptionHandling.cpp

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top