diff options
Diffstat (limited to 'cpp/src/IceGrid/DescriptorBuilder.cpp')
-rw-r--r-- | cpp/src/IceGrid/DescriptorBuilder.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/IceGrid/DescriptorBuilder.cpp b/cpp/src/IceGrid/DescriptorBuilder.cpp index 9079ad98556..3d826e2fbf2 100644 --- a/cpp/src/IceGrid/DescriptorBuilder.cpp +++ b/cpp/src/IceGrid/DescriptorBuilder.cpp @@ -26,7 +26,8 @@ XmlAttributesHelper::XmlAttributesHelper(const IceXML::Attributes& attrs, { } -XmlAttributesHelper::~XmlAttributesHelper() +void +XmlAttributesHelper::checkUnknownAttributes() { vector<string> notUsed; for(map<string, string>::const_iterator p = _attributes.begin(); p != _attributes.end(); ++p) @@ -39,8 +40,9 @@ XmlAttributesHelper::~XmlAttributesHelper() if(!notUsed.empty()) { - Ice::Warning warn(_logger); - warn << "unknown attributes in <" << _filename << "> descriptor, line " << _line << ":\n" << toString(notUsed); + ostringstream os; + os << "unknown attributes in <" << _filename << "> descriptor, line " << _line << ":\n" << toString(notUsed); + throw os.str(); } } |