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 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

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 ( )

list of error records

Definition at line 81 of file xmlerror.cxx.

XMLErrors::~XMLErrors ( )

Definition at line 85 of file xmlerror.cxx.

Member Function Documentation

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
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
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 192 of file xmlerror.cxx.

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

Member Data Documentation

ErrorList XMLErrors::aErrors
private

Definition at line 107 of file xmlerror.hxx.

Referenced by ThrowErrorAsSAXException().


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