Changeset 370:0f88a48293bd in SMSSender
- Timestamp:
- Apr 14, 2014 11:35:44 AM (7 years ago)
- Branch:
- separation-frontend-backend
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
common/exceptions/elibraryloadexception.cpp
r316 r370 61 61 case Other: 62 62 return msg + EException::toString(); 63 case Initialization: 64 return msg + QObject::tr("Internal error while initializing the library"); 63 65 case Unknown: 64 66 default: -
common/exceptions/elibraryloadexception.h
r319 r370 32 32 VersionMismatch, 33 33 Other, 34 Initialization, 34 35 Unknown 35 36 }; -
frontend/business/libraryloader_base.cpp
r364 r370 50 50 #endif 51 51 loadLibrary(libraryPath.absoluteFilePath(filename)); 52 } catch ( EException&e) {53 qWarning() << "Erroneous library [" << libraryPath <<"]:" <<e.chainedWhat();52 } catch (Library::ELoadException &e) { 53 qWarning() << e.chainedWhat(); 54 54 } 55 55 } … … 92 92 QScopedPointer<IIntegrationHelper::Factory> integrationHelperFactory( 93 93 createIntegrationHelperFactory(lib->identificationKey())); 94 lib->init(*integrationHelperFactory); 94 try { 95 lib->init(*integrationHelperFactory); 96 } catch (EException &e){ 97 Library::ELoadException(Library::ELoadException::Initialization) 98 .chain(e) 99 .raise(); 100 } catch (...){ 101 Library::ELoadException(Library::ELoadException::Initialization) 102 .raise(); 103 } 95 104 } 96 105 … … 115 124 } 116 125 } catch (Library::ELoadException& e) { 117 qWarning() << "Error while loading library: " << e.toString();118 126 e.addDebugInfo("filename", filename) 119 .raise();120 } catch (EException& e) {121 Library::ELoadException(Library::ELoadException::Unknown)122 .addDebugInfo("filename", filename)123 .chain(e)124 127 .raise(); 125 128 } catch (...) {
Note: See TracChangeset
for help on using the changeset viewer.