ultimatepp/reference/CoDoExceptions/CoDoExceptions.cpp
cxl 6d663132c1 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@15450 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-11-19 09:28:00 +00:00

15 lines
220 B
C++

#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_COUT|LOG_FILE);
try {
CoDo([] { throw "Worker exception"; });
}
catch(const char *s) {
LOG("Caught: " << s);
}
}