void decodeException(QString & szMsg, bool bError, const QXmlParseException & exception) { if(bError) szMsg = QString(__tr2qs_ctx("Error near line %1, column %2", "objects")).arg(exception.lineNumber()).arg(exception.columnNumber()); else szMsg = QString(__tr2qs_ctx("Warning near line %1, column %2", "objects")).arg(exception.lineNumber()).arg(exception.columnNumber()); szMsg += ": "; szMsg += exception.message(); }
bool MetaBundle::XmlLoader::fatalError( const QXmlParseException &e ) { if( !m_bundle.isEmpty() ) bundleLoaded(); m_lastError = QString( "Error loading XML: \"%1\", at line %2, column %3." ) .arg( e.message(), QString::number( e.lineNumber() ), QString::number( e.columnNumber() ) ); errorEncountered( e.message(), e.lineNumber(), e.columnNumber() ); return false; }
bool XMLHandler::fatalError( const QXmlParseException& exception ) { errorProt += QString( "fatal parsing error: %1 in line %2, column %3\n" ) .arg( exception.message() ) .arg( exception.lineNumber() ) .arg( exception.columnNumber() ); errorLine = exception.lineNumber(); errorCol = exception.columnNumber(); return false; }
bool TupXmlParserBase::error(const QXmlParseException & exception) { #ifdef K_DEBUG #ifdef Q_OS_WIN32 QString msg1 = exception.lineNumber() + QString("x") + exception.columnNumber() + QString(": ") + exception.message(); qDebug() << msg1; #else tWarning() << exception.lineNumber() << "x" << exception.columnNumber() << ": " << exception.message(); tWarning() << __PRETTY_FUNCTION__ << " Document: " << k->document; #endif #else Q_UNUSED(exception); #endif return true; }
bool KWord13Parser::fatalError(const QXmlParseException& exception) { kError(30520) << "XML parsing fatal error: line " << exception.lineNumber() << " col " << exception.columnNumber() << " message: " << exception.message(); // ### TODO: user message box return false; // Stop parsing now, we do not need further errors. }
bool KWord13Parser::error(const QXmlParseException& exception) { // A XML error is recoverable, so it is only a KDE warning kWarning(30520) << "XML parsing error: line " << exception.lineNumber() << " col " << exception.columnNumber() << " message: " << exception.message(); return true; }
// ------------------------------------------------------------------ bool XmlHandler::fatalError(const QXmlParseException& exception) { qDebug() << "Line:" << exception.lineNumber() << ", Column:" << exception.columnNumber() << ", Message:" << exception.message(); return false; }
bool AliceHandler::fatalError(const QXmlParseException &exception) { std::cerr << "Parse error at line " << exception.lineNumber() << ", " << "column " << exception.columnNumber() << ": " << qPrintable(exception.message()) << std::endl; return false; }
bool warning(const QXmlParseException & exception) { cErr << "Warning (line "<< exception.lineNumber() << " column " << exception.columnNumber() << "): " << exception.message() << Endl; return false; }
bool fatalError( const QXmlParseException &exception ) { debug(1,"Fatal error at line %d column %d: %s\n", exception.lineNumber(),exception.columnNumber(), exception.message().data()); return FALSE; }
bool UBRssHandler::fatalError(const QXmlParseException &exception) { qWarning() << "Fatal error at line " << exception.lineNumber() << ", column " << exception.columnNumber() << ": " << exception.message() << mError; return false; }
bool RepositoryXMLHandler::fatalError(const QXmlParseException &exception) { this->error = QObject::tr("XML parsing error at line %1, column %2: %3"). arg(exception.lineNumber()).arg(exception.columnNumber()). arg(exception.message()); return false; }
bool KThemeManager::fatalError(const QXmlParseException & exception) { kError() << "FATAL Error analizing theme: " << endl; kError() << "Line: " << exception.lineNumber() << " Column: " << exception.columnNumber() << " " << exception.message() << endl; return false; }
bool fatalError(const QXmlParseException & exception) { stream << "Fatal error: " << exception.message() << "\n"; stream << "Line: " << exception.lineNumber() << "\n"; stream << "Column: " << exception.columnNumber() << "\n"; return true; }
bool fatalError(const QXmlParseException & exception) { cErr << "Fatal error (line "<< exception.lineNumber() << " column " << exception.columnNumber() << "): " << exception.message() << Endl; return false; }
bool RssReader::fatalError(const QXmlParseException &e) { QString fmt("<br /><b>Parse error</b> (line:%1 column:%2): %3"); m_output.append( fmt.arg(e.lineNumber()).arg(e.columnNumber()).arg(e.message()) ); return QXmlDefaultHandler::fatalError(e); }
bool iTunesXmlHandler::fatalError(const QXmlParseException &exception) { _errorStr = QObject::tr("Parse error at line %1, column %2:\n%3") .arg(exception.lineNumber()) .arg(exception.columnNumber()) .arg(exception.message()); return false; }
bool warning(const QXmlParseException & exception) { stream << "Warning: " << exception.message() << "\n"; stream << "Line: " << exception.lineNumber() << "\n"; stream << "Column: " << exception.columnNumber() << "\n"; return true; }
virtual bool error( const QXmlParseException & exception ) override { NGT_ERROR_MSG( "%d, %d: %s\n", exception.lineNumber(), exception.columnNumber(), exception.message().toUtf8().constData() ); return true; }
bool TanoHandlerOld::fatalError(const QXmlParseException &exception) { qDebug() << QString("Parse error at line %1, column %2: %3") .arg(exception.lineNumber()) .arg(exception.columnNumber()) .arg(exception.message()); return false; }
bool XSAppBuilder::fatalError(const QXmlParseException &exception) { qWarning() << "Fatal error on line" << exception.lineNumber() << ", column" << exception.columnNumber() << ":" << exception.message(); return false; }
bool ProjectXML::fatalError(const QXmlParseException &e) { qDebug() << e.message() << QString("@%1:%2").arg(e.lineNumber()).arg(e.columnNumber()); // << e.publicId() // << e.systemId(); return true; }
bool ContentHandler::fatalError(const QXmlParseException & exception) { m_error_msg = QString("Fatal error %1:%2: %3") .arg(exception.columnNumber()) .arg(exception.lineNumber()) .arg(exception.message()); m_result += nestPrefix(); m_result += "fatalError(exception={columnNumber=" + QString::number(exception.columnNumber()) + ", lineNumber=" + QString::number(exception.lineNumber()) + ", publicId=\"" + escapeStr(exception.publicId()) + "\", systemId=\"" + escapeStr(exception.systemId()) + "\", message=\"" + escapeStr(exception.message()) + "\"})\n"; return TRUE; }
bool VocabParser::fatalError( const QXmlParseException& exception ) { QMessageBox::warning( 0, QObject::tr( "Error" ), QObject::tr( "ParseError" ) .arg( exception.lineNumber() ) .arg( exception.columnNumber() ) .arg( exception.message() ) ); return( false ); }
bool NodesSax::error(const QXmlParseException &exception) { Utils::error(QObject::tr("Parse error (1) at line %1, column %2:\n%3") .arg(exception.lineNumber()) .arg(exception.columnNumber()) .arg(exception.message())); return false; }
bool SessionFileParser::fatalError (const QXmlParseException & exception) { qWarning() << QObject::tr("Fatal error on line") << exception.lineNumber() << QObject::tr(", column") << exception.columnNumber() << ":" << exception.message(); return false; }
bool Handler::fatalError (const QXmlParseException & exception) { qWarning() << QString("Fatal error on line %1, column %2: %3").arg( exception.lineNumber()).arg(exception.columnNumber()).arg( exception.message()); return false; }
bool UiReader::fatalError(const QXmlParseException &exception) { QString msg = LU::tr("XML error: Parse error at line %1, column %2 (%3).") .arg(exception.lineNumber()).arg(exception.columnNumber()) .arg(exception.message()); m_cd.appendError(msg); return false; }
bool ExampleLoader::XMLHandler::fatalError(const QXmlParseException& e) { PROCESSORSLOGINIT; LWARN << "Warning at file " << e.systemId() << ", line " << e.lineNumber() << ", char " << e.columnNumber() << " Message: " << e.message(); return false; }
bool UiHandler::fatalError( const QXmlParseException& exception ) { QString msg; msg.sprintf( "Parse error at line %d, column %d (%s).", exception.lineNumber(), exception.columnNumber(), exception.message().latin1() ); fprintf( stderr, "XML error: %s\n", msg.latin1() ); return FALSE; }