mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-09 11:34:54 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@11343 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6b6d38c454
commit
5e974f5b93
4 changed files with 60 additions and 0 deletions
16
reference/CoWorkExceptions/CoWorkExceptions.cpp
Normal file
16
reference/CoWorkExceptions/CoWorkExceptions.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue