ultimatepp/reference/CoWorkExceptions/CoWorkExceptions.cpp
cxl 5e974f5b93 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@11343 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-10-01 11:47:50 +00:00

16 lines
233 B
C++

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