LibreOffice Module xmloff (master) 1
|
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< ErrorRecord > | ErrorList |
definition of type for error list More... | |
Private Attributes | |
ErrorList | m_aErrors |
The XMLErrors is used to collect all errors and warnings that occur for appropriate processing.
Definition at line 102 of file xmlerror.hxx.
|
private |
definition of type for error list
Definition at line 105 of file xmlerror.hxx.
XMLErrors::XMLErrors | ( | ) |
list of error records
Definition at line 82 of file xmlerror.cxx.
XMLErrors::~XMLErrors | ( | ) |
Definition at line 86 of file xmlerror.cxx.
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.
rParams | error ID == error flags + error class + error number |
rExceptionMessage | parameters for error message |
rLocator | original exception string |
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
rParams | error ID == error flags + error class + error number |
rExceptionMessage | parameters for error message |
nRow | original exception string |
nColumn | XLocator: file row number |
rPublicId | XLocator: file column number |
rSystemId | XLocator: file public ID |
void XMLErrors::ThrowErrorAsSAXException | ( | sal_Int32 | nIdMask | ) |
location
throw a SAXParseException that describes the first error that matches the given mask
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.
|
private |
Definition at line 107 of file xmlerror.hxx.
Referenced by ThrowErrorAsSAXException().