LibreOffice Module xmloff (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
XMLErrors Class Reference

The XMLErrors is used to collect all errors and warnings that occur for appropriate processing. More...

#include <xmlerror.hxx>

Public Member Functions

 XMLErrors ()
 list of error records More...
 
 ~XMLErrors ()
 
void AddRecord (sal_Int32 nId, const css::uno::Sequence< OUString > &rParams, const OUString &rExceptionMessage, sal_Int32 nRow, sal_Int32 nColumn, const OUString &rPublicId, const OUString &rSystemId)
 add a new entry to the list of error messages More...
 
void AddRecord (sal_Int32 nId, const css::uno::Sequence< OUString > &rParams, const OUString &rExceptionMessage, const css::uno::Reference< css::xml::sax::XLocator > &rLocator)
 XLocator: file system ID. More...
 
void ThrowErrorAsSAXException (sal_Int32 nIdMask)
 location More...
 

Private Types

typedef ::std::vector< ErrorRecordErrorList
 definition of type for error list More...
 

Private Attributes

ErrorList m_aErrors
 

Detailed Description

The XMLErrors is used to collect all errors and warnings that occur for appropriate processing.

Definition at line 102 of file xmlerror.hxx.

Member Typedef Documentation

◆ ErrorList

typedef ::std::vector<ErrorRecord> XMLErrors::ErrorList
private

definition of type for error list

Definition at line 105 of file xmlerror.hxx.

Constructor & Destructor Documentation

◆ XMLErrors()

XMLErrors::XMLErrors ( )

list of error records

Definition at line 82 of file xmlerror.cxx.

◆ ~XMLErrors()

XMLErrors::~XMLErrors ( )

Definition at line 86 of file xmlerror.cxx.

Member Function Documentation

◆ AddRecord() [1/2]

void XMLErrors::AddRecord ( sal_Int32  nId,
const css::uno::Sequence< OUString > &  rParams,
const OUString &  rExceptionMessage,
const css::uno::Reference< css::xml::sax::XLocator > &  rLocator 
)

XLocator: file system ID.

Parameters
rParamserror ID == error flags + error class + error number
rExceptionMessageparameters for error message
rLocatororiginal exception string

◆ AddRecord() [2/2]

void XMLErrors::AddRecord ( sal_Int32  nId,
const css::uno::Sequence< OUString > &  rParams,
const OUString &  rExceptionMessage,
sal_Int32  nRow,
sal_Int32  nColumn,
const OUString &  rPublicId,
const OUString &  rSystemId 
)

add a new entry to the list of error messages

Parameters
rParamserror ID == error flags + error class + error number
rExceptionMessageparameters for error message
nRoworiginal exception string
nColumnXLocator: file row number
rPublicIdXLocator: file column number
rSystemIdXLocator: file public ID

◆ ThrowErrorAsSAXException()

void XMLErrors::ThrowErrorAsSAXException ( sal_Int32  nIdMask)

location

throw a SAXParseException that describes the first error that matches the given mask

Exceptions
css::xml::sax::SAXParseException

Definition at line 186 of file xmlerror.cxx.

References Any, ErrorRecord::aParams, m_aErrors, ErrorRecord::nColumn, ErrorRecord::nRow, ErrorRecord::sExceptionMessage, ErrorRecord::sPublicId, and ErrorRecord::sSystemId.

Member Data Documentation

◆ m_aErrors

ErrorList XMLErrors::m_aErrors
private

Definition at line 107 of file xmlerror.hxx.

Referenced by ThrowErrorAsSAXException().


The documentation for this class was generated from the following files: