示例#1
0
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;
}
示例#2
0
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.
}
示例#3
0
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;
}
示例#4
0
 // ------------------------------------------------------------------
 bool XmlHandler::fatalError(const QXmlParseException& exception)
 {
     qDebug() << "Line:"      << exception.lineNumber()
              << ", Column:"  << exception.columnNumber()
              << ", Message:" << exception.message();
     return false;
 }
示例#5
0
 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 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;
}
示例#8
0
bool UBRssHandler::fatalError(const QXmlParseException &exception)
{
    qWarning() << "Fatal error at line " << exception.lineNumber()
               << ", column " << exception.columnNumber() << ": "
               << exception.message() << mError;
    return false;
}
示例#9
0
 bool fatalError(const QXmlParseException & exception)
 {
     stream << "Fatal error: " << exception.message() << "\n";
     stream << "Line: "   << exception.lineNumber() << "\n";
     stream << "Column: " << exception.columnNumber() << "\n";
     return true;
 }
示例#10
0
 bool fatalError(const QXmlParseException & exception)
 {
     cErr << "Fatal error (line "<< exception.lineNumber()
          << " column " << exception.columnNumber()
          << "): " << exception.message() << Endl;
     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;
}
示例#12
0
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 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;
}
示例#14
0
 bool warning(const QXmlParseException & exception)
 {
     stream << "Warning: " << exception.message() << "\n";
     stream << "Line: "   << exception.lineNumber() << "\n";
     stream << "Column: " << exception.columnNumber() << "\n";
     return true;
 }
示例#15
0
	virtual bool error( const QXmlParseException & exception ) override
	{
		NGT_ERROR_MSG( "%d, %d: %s\n",
			exception.lineNumber(),
			exception.columnNumber(),
			exception.message().toUtf8().constData() );
		return true;
	}
示例#16
0
 bool SessionFileParser::fatalError (const QXmlParseException & exception)
 {
     qWarning() << QObject::tr("Fatal error on line") << exception.lineNumber()
                << QObject::tr(", column") << exception.columnNumber() << ":"
                << exception.message();

     return false;
 }
示例#17
0
bool ProjectXML::fatalError(const QXmlParseException &e)
{
    qDebug() << e.message()
             << QString("@%1:%2").arg(e.lineNumber()).arg(e.columnNumber());
            // << e.publicId()
            // << e.systemId();
    return true;
}
示例#18
0
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;
}
示例#19
0
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;
}
示例#20
0
bool ThemeManager::error(const QXmlParseException &exception)
{
    #ifdef K_DEBUG
        QString msg = "ThemeManager::error() - Fatal Error: Can't process theme!";
        #ifdef Q_OS_WIN
            qDebug() << msg;
            qDebug() << "ThemeManager::error() - Message: " << exception.message();
        #else
            tError() << msg;
            tError() << "ThemeManager::error() - Message: " << exception.message();
        #endif
    #else
        Q_UNUSED(exception);
    #endif

    return false;
}
示例#21
0
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 );
}
示例#22
0
bool XSAppBuilder::fatalError(const QXmlParseException &exception)
{
    qWarning() << "Fatal error on line" << exception.lineNumber()
                   << ", column" << exception.columnNumber() << ":"
                   << exception.message();

    return false;
}
示例#23
0
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;
}
示例#24
0
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;
}
示例#25
0
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;
}
示例#26
0
bool PdmlHandler::fatalError(const QXmlParseException &exception)
{
	QString extra;

    qDebug("%s", __FUNCTION__);
	if (exception.message() == "tag mismatch" && lastElement == "fieldData")
		extra = "\nAre you using an old version of Wireshark? If so, try using a newer version. Alternatively, view the packet dump decode in Wireshark by clicking the \"External\" button.";

    QMessageBox::warning(0, QObject::tr("PDML Parser"),
                         QObject::tr("XML parse error for packet %1 "
							"at line %2, column %3:\n    %4\n%5")
                         .arg(packetCount+1)
                         .arg(exception.lineNumber())
                         .arg(exception.columnNumber())
                         .arg(exception.message())
						 .arg(extra));
    return false;
}
示例#27
0
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;
}
示例#28
0
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;
}
示例#29
0
bool ExampleLoader::XMLHandler::warning(const QXmlParseException& e)
{
  PROCESSORSLOGINIT;
  LERROR << "Error at file " << e.systemId()
         << ", line " << e.lineNumber()
         << ", char " << e.columnNumber()
         << "  Message: " << e.message();
         return true;
}
示例#30
0
bool XLIFFHandler::fatalError(const QXmlParseException &exception)
{
    QString msg;
    msg.sprintf("XML error: Parse error at line %d, column %d (%s).\n",
                 exception.lineNumber(), exception.columnNumber(),
                 exception.message().toLatin1().data() );
    m_cd.appendError(msg);
    return false;
}