예제 #1
0
	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();
	}
예제 #2
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;
}
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;
}
예제 #4
0
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;
}
예제 #5
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.
}
예제 #6
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;
}
예제 #7
0
 // ------------------------------------------------------------------
 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;
}
예제 #9
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;
 }
예제 #11
0
bool UBRssHandler::fatalError(const QXmlParseException &exception)
{
    qWarning() << "Fatal error at line " << exception.lineNumber()
               << ", column " << exception.columnNumber() << ": "
               << exception.message() << mError;
    return false;
}
예제 #12
0
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;
}
예제 #13
0
bool KThemeManager::fatalError(const QXmlParseException & exception)
{
    kError() << "FATAL Error analizing theme: " << endl;
    kError() << "Line: " << exception.lineNumber() << " Column: " << exception.columnNumber() << " " << exception.message() << endl;

    return false;
}
예제 #14
0
 bool fatalError(const QXmlParseException & exception)
 {
     stream << "Fatal error: " << exception.message() << "\n";
     stream << "Line: "   << exception.lineNumber() << "\n";
     stream << "Column: " << exception.columnNumber() << "\n";
     return true;
 }
예제 #15
0
 bool fatalError(const QXmlParseException & exception)
 {
     cErr << "Fatal error (line "<< exception.lineNumber()
          << " column " << exception.columnNumber()
          << "): " << exception.message() << Endl;
     return false;
 }
예제 #16
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 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;
}
예제 #18
0
 bool warning(const QXmlParseException & exception)
 {
     stream << "Warning: " << exception.message() << "\n";
     stream << "Line: "   << exception.lineNumber() << "\n";
     stream << "Column: " << exception.columnNumber() << "\n";
     return true;
 }
예제 #19
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;
	}
예제 #20
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;
}
예제 #21
0
bool XSAppBuilder::fatalError(const QXmlParseException &exception)
{
    qWarning() << "Fatal error on line" << exception.lineNumber()
                   << ", column" << exception.columnNumber() << ":"
                   << exception.message();

    return false;
}
예제 #22
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;
}
예제 #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 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 );
}
예제 #25
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;
}
예제 #26
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;
 }
예제 #27
0
파일: handler.cpp 프로젝트: Hasimir/PySide
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;
}
예제 #28
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;
}
예제 #29
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;
}
예제 #30
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;
}