Exemplo n.º 1
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;
	}
Exemplo n.º 2
0
//! [0]
bool Handler::fatalError (const QXmlParseException & exception)
{
    qWarning() << "Fatal error on line" << exception.lineNumber()
               << ", column" << exception.columnNumber() << ":"
               << exception.message();

    return false;
}
Exemplo n.º 3
0
bool GcideXmlHandler::fatalError(const QXmlParseException &exception)
{
    html += QObject::tr("Parse error at line %1, column %2:\n%3")
            .arg(exception.lineNumber())
            .arg(exception.columnNumber())
            .arg(exception.message());
    return false;
}
Exemplo n.º 4
0
bool OsmReader::fatalError(const QXmlParseException &exception)
{
  _errorString = QObject::tr("Parse error at line %1, column %2:\n%3")
      .arg(exception.lineNumber())
      .arg(exception.columnNumber())
      .arg(exception.message());
  return false;
}
Exemplo n.º 5
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;
}
Exemplo n.º 6
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 );
}
Exemplo n.º 7
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;
}
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;
}
Exemplo n.º 9
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;
}
Exemplo n.º 10
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;
}
Exemplo n.º 11
0
bool XMLConfigurationFileHandler::warning(const QXmlParseException& e)
{
  XMLCFGLOGINIT;
  LWARN << "Warning at file " << e.systemId()
  << ", line " << e.lineNumber()
  << ", char " << e.columnNumber()
  << "  Message: " << e.message();
  return true;
}
Exemplo n.º 12
0
bool XMLConfigurationFileHandler::fatalError(const QXmlParseException& e)
{
  XMLCFGLOGINIT;
  LERROR << "Fatal Error at file " << e.systemId()
  << ", line " << e.lineNumber()
  << ", char " << e.columnNumber()
  << "  Message: " << e.message();
  return false;
}
Exemplo n.º 13
0
bool
ChordXmlHandler::fatalError(const QXmlParseException& exception)
{
    m_errorString = QString("%1 at line %2, column %3")
                    .arg(exception.message())
                    .arg(exception.lineNumber())
                    .arg(exception.columnNumber());
    return QXmlDefaultHandler::fatalError( exception );
}
Exemplo n.º 14
0
bool ArtefactHandler::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() );

    return QXmlDefaultHandler::fatalError( exception );
}
Exemplo n.º 15
0
	virtual bool fatalError( const QXmlParseException & exception ) override
	{
		NGT_ERROR_MSG( "%d, %d: %s\n",
			exception.lineNumber(),
			exception.columnNumber(),
			exception.message().toUtf8().constData() );
		assert( false && "Fatal error" );
		return false;
	}
Exemplo n.º 16
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;
}
Exemplo n.º 17
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;
}
Exemplo n.º 18
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;
}
Exemplo n.º 19
0
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;
}
Exemplo n.º 20
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;
}
Exemplo n.º 21
0
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;
}
bool XMLCpackList::fatalError(const QXmlParseException &exception)
{
    QMessageBox::information(NULL, QObject::tr("Config Pack index table"),
                             QObject::tr("Parse error at line %1, column %2:\n"
                                         "%3")
                             .arg(exception.lineNumber())
                             .arg(exception.columnNumber())
                             .arg(exception.message()));
    return false;
}
Exemplo n.º 23
0
bool XbelHandler::fatalError(const QXmlParseException &exception)
{
    QMessageBox::information(treeWidget->window(), QObject::tr("SAX Bookmarks"),
                             QObject::tr("Parse error at line %1, column %2:\n"
                                         "%3")
                             .arg(exception.lineNumber())
                             .arg(exception.columnNumber())
                             .arg(exception.message()));
    return false;
}
Exemplo n.º 24
0
bool XMLHandler::fatalError(const QXmlParseException &exception)
{
    errorProt +=
        i18n("fatal parsing error: %1 in line %2, column %3").arg(exception.message()).arg(exception.lineNumber()).arg(exception.columnNumber());

    errorLine = exception.lineNumber();
    errorCol = exception.columnNumber();

    return false;
}
Exemplo n.º 25
0
/* non-fatal error: just report it */
bool VgLogHandler::error( const QXmlParseException& exception )
{
   //   vkPrintErr("VgLogHandler::error");
   QString err = exception.message() +
                 " (line: " + QString::number( exception.lineNumber() ) +
                 ", col: " + QString::number( exception.columnNumber() ) + ")";
                 
   // printf("VgLogHandler::non-fatal error: %s", err.latin1());
   
   return true; /* try to continue. */
}
Exemplo n.º 26
0
Arquivo: phrase.cpp Projeto: Suneal/qt
bool QphHandler::fatalError(const QXmlParseException &exception)
{
    if (ferrorCount++ == 0) {
        QString msg = PhraseBook::tr("Parse error at line %1, column %2 (%3).")
            .arg(exception.lineNumber()).arg(exception.columnNumber())
            .arg(exception.message());
        QMessageBox::information(0,
            QObject::tr("Qt Linguist"), msg);
    }
    return false;
}
Exemplo n.º 27
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;
}
    /** Event for a fatal error, that occured during handling the XMl-file. */
    bool fatalError(const QXmlParseException &exception)
    {
        QMessageBox::information(0x0, QObject::tr("Im2CharRectsXMLOutputHandler"),
                                 QObject::tr("Parse error at line %1, column %2:\n"
                                             "%3")
                                 .arg(exception.lineNumber())
                                 .arg(exception.columnNumber())
                                 .arg(exception.message()));
        return false;

    } // end of fatalError
Exemplo n.º 29
0
bool OPFHandler::fatalError(const QXmlParseException &exception)
{
    qDebug() << "Fatal error while parsing OPF at line" 
             << exception.lineNumber() 
             << ", column" 
             << exception.columnNumber()
             << ":"
             << exception.message();

    return false;
}
Exemplo n.º 30
0
	bool error ( const QXmlParseException & exception )
	{
		int line, col;
		line=exception.lineNumber();
		col=exception.columnNumber();
		QString _error="Line "+QString::number(line)+" Col "+QString::number(col)+": "+exception.message()+" "+svg_file_name;
		
		statusBar->showMessage(_error);
		
		return false;
	}