Changeset 809b5e5 for src/app/application.cpp
- Timestamp:
- 08/30/17 20:38:27 (5 years ago)
- Branches:
- master, qt5
- Children:
- 79a7671
- Parents:
- ebe26af (diff), e27a3f5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/app/application.cpp
rebe26af r809b5e5 1 1 /* 2 2 * Copyright (C) 2010 Ixonos Plc. 3 * Copyright (C) 2011-201 5Philipp Spitzer, gregor herrmann, Stefan Stahl3 * Copyright (C) 2011-2017 Philipp Spitzer, gregor herrmann, Stefan Stahl 4 4 * 5 5 * This file is part of ConfClerk. … … 18 18 * ConfClerk. If not, see <http://www.gnu.org/licenses/>. 19 19 */ 20 #if defined(__GNUC__) || defined(__llvm__) || defined(__clang__) 21 #include <cxxabi.h> 22 #endif 23 #include <exception> 24 20 25 #include "application.h" 21 26 #include "errormessage.h" … … 33 38 error_message("UNCAUGHT OrmException: " + e.text()); 34 39 return false; 40 } catch (std::exception& e) { 41 error_message("UNCAUGHT exception: " + QString(e.what())); 42 return false; 35 43 } catch (...) { 36 error_message("UNCAUGHT EXCEPTION: unknown"); 44 #if defined(__GNUC__) || defined(__llvm__) || defined(__clang__) 45 int status = 0; 46 char *buff = __cxxabiv1::__cxa_demangle( 47 __cxxabiv1::__cxa_current_exception_type()->name(), 48 NULL, NULL, &status); 49 QString exception_name = QString(buff); 50 std::free(buff); 51 #else 52 QString exception_name = QString("unknown"); 53 #endif 54 error_message("UNCAUGHT exception: " + exception_name); 37 55 return false; 38 56 }
Note: See TracChangeset
for help on using the changeset viewer.