using ::com::sun::star::uno::Any; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Reference; using ::com::sun::star::xml::sax::XLocator; using ::com::sun::star::xml::sax::SAXParseException;
/// ErrorRecord: contains all information for one error
OUString sExceptionMessage;/// message of original exception (if available)
// XLocator information:
sal_Int32 nRow; /// row number where error occurred (or -1 for unknown)
sal_Int32 nColumn; /// column number where error occurred (or -1)
OUString sPublicId; /// public identifier
OUString sSystemId; /// public identifier
if (comphelper::LibreOfficeKit::isActive() && mpNotifier)
{ // The outer error is logged in sfx2, mentioning just the stream name. Also log here the // inner error, which potentially contains the location of an uncaught exception.
sal_Int32 nFlags = (nId & XMLERROR_MASK_FLAG); if (nFlags & (XMLERROR_FLAG_ERROR | XMLERROR_FLAG_SEVERE | XMLERROR_API))
{
tools::JsonWriter aWriter;
{
aWriter.put("classification", "error");
aWriter.put("code", "");
aWriter.put("kind", "");
aWriter.put("cmd", "");
aWriter.put("message", rExceptionMessage);
}
mpNotifier->libreOfficeKitViewCallback(LOK_CALLBACK_ERROR, aWriter.finishAndGetAsOString());
}
}
#ifdef DBG_UTIL
// give detailed assertion on this message
OUStringBuffer sMessage( "An error or a warning has occurred during XML import/export!\n" );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.