summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-11-15 12:38:55 +0000
committerOliver Bolte <obo@openoffice.org>2004-11-15 12:38:55 +0000
commit93a84d43bcec10da63371135156fe926bbe32ec0 (patch)
tree80a75b96b025d95cbd384238e3c15a4552539acd /configmgr
parent35aa0031278b6d482d83cc06a9c33809d77e5df1 (diff)
INTEGRATION: CWS cfglooseends (1.3.12); FILE MERGED
2004/11/05 10:25:10 jb 1.3.12.1: #115489# Raise an exception when encountering an invalid value type
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/xml/elementparser.hxx14
1 files changed, 12 insertions, 2 deletions
diff --git a/configmgr/source/xml/elementparser.hxx b/configmgr/source/xml/elementparser.hxx
index efcc791f86ac..39bdb8befe01 100644
--- a/configmgr/source/xml/elementparser.hxx
+++ b/configmgr/source/xml/elementparser.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: elementparser.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kz $ $Date: 2004-08-31 14:59:01 $
+ * last change: $Author: obo $ $Date: 2004-11-15 13:38:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,6 +91,15 @@ namespace configmgr
Logger mLogger;
public:
typedef uno::Reference< sax::XAttributeList > SaxAttributeList;
+
+ class BadValueType
+ {
+ OUString mMessage;
+ public:
+ BadValueType(OUString const & aMessage) : mMessage(aMessage) {}
+
+ OUString message() const { return mMessage.getStr(); }
+ };
public:
explicit
ElementParser(Logger const & xLogger)
@@ -132,6 +141,7 @@ namespace configmgr
/// retrieve element type and associated module name of a set,
uno::Type getPropertyValueType(SaxAttributeList const& _xAttribs) const;
+ // throw( BadValueType )
/// reads a value attribute from the attribute list
bool isNull(SaxAttributeList const& _xAttribs) const;