Beispiel #1
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;
}
Beispiel #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.
}
Beispiel #3
0
 // ------------------------------------------------------------------
 bool XmlHandler::fatalError(const QXmlParseException& exception)
 {
     qDebug() << "Line:"      << exception.lineNumber()
              << ", Column:"  << exception.columnNumber()
              << ", Message:" << exception.message();
     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;
 }
Beispiel #5
0
 bool warning(const QXmlParseException & exception)
 {
     stream << "Warning: " << exception.message() << "\n";
     stream << "Line: "   << exception.lineNumber() << "\n";
     stream << "Column: " << exception.columnNumber() << "\n";
     return true;
 }
Beispiel #6
0
 bool fatalError(const QXmlParseException & exception)
 {
     cErr << "Fatal error (line "<< exception.lineNumber()
          << " column " << exception.columnNumber()
          << "): " << exception.message() << Endl;
     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;
}
Beispiel #8
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);
}
Beispiel #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;
 }
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 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 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;
}
Beispiel #13
0
bool UBRssHandler::fatalError(const QXmlParseException &exception)
{
    qWarning() << "Fatal error at line " << exception.lineNumber()
               << ", column " << exception.columnNumber() << ": "
               << exception.message() << mError;
    return false;
}
Beispiel #14
0
 bool warning(const QXmlParseException & exception)
 {
     cErr << "Warning (line "<< exception.lineNumber()
          << " column " << exception.columnNumber()
          << "): " << exception.message() << Endl;
     return false;
 }
Beispiel #15
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;
}
Beispiel #16
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;
}
Beispiel #17
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;
}
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 );
}
Beispiel #19
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;
}
Beispiel #20
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;
	}
Beispiel #21
0
bool XSAppBuilder::fatalError(const QXmlParseException &exception)
{
    qWarning() << "Fatal error on line" << exception.lineNumber()
                   << ", column" << exception.columnNumber() << ":"
                   << exception.message();

    return false;
}
Beispiel #22
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;
}
Beispiel #23
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;
 }
bool SpecificEntitiesLoader::XMLHandler::warning(const QXmlParseException& e)
{
  LOGINIT("LP::SpecificEntities");
  LERROR << "Error at file " << toString(e.systemId())
         << ", line " << e.lineNumber()
         << ", char " << e.columnNumber()
         << "  Message: " << toString(e.message());
         return true;
}
	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();
	}
Beispiel #26
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;
}
Beispiel #27
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;
}
Beispiel #28
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;
}
Beispiel #29
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;
}
bool SpecificEntitiesLoader::XMLHandler::fatalError(const QXmlParseException& e)
{
  LOGINIT("LP::SpecificEntities");
  LWARN << "Warning at file " << toString(e.systemId())
        << ", line " << e.lineNumber()
        << ", char " << e.columnNumber()
        << "  Message: " << toString(e.message());
        return false;
}