- if (!document.setContent (aData, false, &xml_error, &xml_error_line, &xml_error_column)) {
- error_message("Could not parse schedule: " + xml_error + " at line " + QString("%1").arg(xml_error_line) + " column " + QString("%1").arg(xml_error_column));
- return;
+ if (!document.setContent(aData, false, &xml_error, &xml_error_line, &xml_error_column)) {
+ throw ParseException("Could not parse schedule: " + xml_error + " at line " + QString("%1").arg(xml_error_line) + " column " + QString("%1").arg(xml_error_column));