Changeset 3018
- Timestamp:
- 09/10/2011 23:52:00 (8 months ago)
- File:
-
- 1 edited
-
box/trunk/lib/common/MainHelper.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/MainHelper.h
r1161 r3018 14 14 15 15 #include "BoxException.h" 16 #include "Logging.h" 16 17 17 18 #define MAINHELPER_START \ … … 22 23 try { 23 24 #define MAINHELPER_END \ 24 } catch(BoxException &e) { \25 printf("Exception: %s (%d/%d)\n", e.what(), e.GetType(), e.GetSubType()); \26 return 1; \27 25 } catch(std::exception &e) { \ 28 printf("Exception: %s\n", e.what());\29 return 1; \26 BOX_FATAL(e.what()); \ 27 return 1; \ 30 28 } catch(...) { \ 31 printf("Exception: <UNKNOWN>\n"); \ 32 return 1; } 29 BOX_FATAL("UNKNOWN"); \ 30 return 1; \ 31 } 33 32 34 33 #ifdef BOX_MEMORY_LEAK_TESTING
Note: See TracChangeset
for help on using the changeset viewer.
