Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyforecast.cpp
Context not available. | |||||
421 | } | 421 | } | ||
---|---|---|---|---|---|
422 | (*it).setLastPayment(date); | 422 | (*it).setLastPayment(date); | ||
423 | 423 | | |||
424 | } catch (const MyMoneyException &e) { | 424 | } catch (const std::exception &e) { | ||
425 | qDebug() << Q_FUNC_INFO << " Schedule " << (*it).id() << " (" << (*it).name() << "): " << e.what(); | 425 | qDebug() << Q_FUNC_INFO << " Schedule " << (*it).id() << " (" << (*it).name() << "): " << e.what(); | ||
426 | 426 | | |||
427 | schedule.erase(it); | 427 | schedule.erase(it); | ||
Context not available. | |||||
1030 | if (fAccCycle < 1 | 1030 | if (fAccCycle < 1 | ||
1031 | || fCycles < 1 | 1031 | || fCycles < 1 | ||
1032 | || fDays < 1) { | 1032 | || fDays < 1) { | ||
1033 | throw MYMONEYEXCEPTION("Illegal settings when calling doForecast. Settings must be higher than 0"); | 1033 | throw MYMONEYEXCEPTION_CSTRING("Illegal settings when calling doForecast. Settings must be higher than 0"); | ||
1034 | } | 1034 | } | ||
1035 | 1035 | | |||
1036 | //initialize global variables | 1036 | //initialize global variables | ||
Context not available. | |||||
1106 | 1106 | | |||
1107 | //validate arguments | 1107 | //validate arguments | ||
1108 | if (trendDays < 1) { | 1108 | if (trendDays < 1) { | ||
1109 | throw MYMONEYEXCEPTION("Illegal arguments when calling calculateAccountTrend. trendDays must be higher than 0"); | 1109 | throw MYMONEYEXCEPTION_CSTRING("Illegal arguments when calling calculateAccountTrend. trendDays must be higher than 0"); | ||
1110 | } | 1110 | } | ||
1111 | 1111 | | |||
1112 | //If it is a new account, we don't take into account the first day | 1112 | //If it is a new account, we don't take into account the first day | ||
Context not available. | |||||
1328 | if (historyStart > historyEnd || | 1328 | if (historyStart > historyEnd || | ||
1329 | budgetStart > budgetEnd || | 1329 | budgetStart > budgetEnd || | ||
1330 | budgetStart <= historyEnd) { | 1330 | budgetStart <= historyEnd) { | ||
1331 | throw MYMONEYEXCEPTION("Illegal parameters when trying to create budget"); | 1331 | throw MYMONEYEXCEPTION_CSTRING("Illegal parameters when trying to create budget"); | ||
1332 | } | 1332 | } | ||
1333 | 1333 | | |||
1334 | //get forecast method | 1334 | //get forecast method | ||
Context not available. |