]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - Exception.h
Use solver to check for problems and produce a list of package transactions
[cygwin-apps/setup.git] / Exception.h
index 7b16612df1f9a452f6f906e855030c153b03cd46..e4abd18b86de61470fcccc32e03c56493bdaffbe 100644 (file)
@@ -36,16 +36,17 @@ private:
 #define APPERR_CORRUPT_PACKAGE 1
 #define APPERR_IO_ERROR                2
 #define APPERR_LOGIC_ERROR     3
+#define APPERR_WINDOW_ERROR    4
 
-#define TOPLEVEL_CATCH(threadname)                                      \
+#define TOPLEVEL_CATCH(owner, threadname)                             \
   catch (Exception *e)                                                  \
   {                                                                     \
-    fatal(NULL, IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO, (threadname),        \
+    fatal((owner), IDS_UNCAUGHT_EXCEPTION_WITH_ERRNO, (threadname),   \
         typeid(*e).name(), e->what(), e->errNo());                      \
   }                                                                     \
   catch (std::exception *e)                                             \
   {                                                                     \
-    fatal(NULL, IDS_UNCAUGHT_EXCEPTION, (threadname),                   \
+    fatal((owner), IDS_UNCAUGHT_EXCEPTION, (threadname),              \
         typeid(*e).name(), e->what());                                  \
   }
 
This page took 0.023895 seconds and 5 git commands to generate.