projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
include
/
anna
/
diameter
/
stack
/
Vendor.hpp
diff --git
a/include/anna/diameter/stack/Vendor.hpp
b/include/anna/diameter/stack/Vendor.hpp
index
f11f8ea
..
4267a39
100644
(file)
--- a/
include/anna/diameter/stack/Vendor.hpp
+++ b/
include/anna/diameter/stack/Vendor.hpp
@@
-67,7
+67,7
@@
public:
* @param v Vendor code
* @return Vendor name
*/
* @param v Vendor code
* @return Vendor name
*/
- static const char* asText(const Code::_v v)
throw(anna::RuntimeException
) {
+ static const char* asText(const Code::_v v)
noexcept(false
) {
return asCString(v);
}
};
return asCString(v);
}
};
@@
-78,27
+78,27
@@
public:
// get
// get
- S32 getId(void) const
throw()
{ return a_id; }
- const S8 * getName(void) const
throw()
{ return a_name.c_str(); }
+ S32 getId(void) const { return a_id; }
+ const S8 * getName(void) const { return a_name.c_str(); }
// helpers
// helpers
- bool isVendorSpecific(void) const
throw()
{ return (a_id > 0); }
+ bool isVendorSpecific(void) const { return (a_id > 0); }
- std::string asString(void) const
throw()
;
- anna::xml::Node* asXML(anna::xml::Node* parent) const
throw()
;
+ std::string asString(void) const ;
+ anna::xml::Node* asXML(anna::xml::Node* parent) const ;
// operators
friend bool operator == (const Vendor & v1, const Vendor & v2) { return ((v1.getId() == v2.getId())); }
// set
// operators
friend bool operator == (const Vendor & v1, const Vendor & v2) { return ((v1.getId() == v2.getId())); }
// set
- void setId(const S32 & id)
throw(anna::RuntimeException
) {
+ void setId(const S32 & id)
noexcept(false
) {
if(id < 0) throw anna::RuntimeException("Negative vendor-id not allowed", ANNA_FILE_LOCATION);
a_id = id;
}
if(id < 0) throw anna::RuntimeException("Negative vendor-id not allowed", ANNA_FILE_LOCATION);
a_id = id;
}
- void setName(const std::string & n)
throw(anna::RuntimeException
) {
+ void setName(const std::string & n)
noexcept(false
) {
if(n == "") throw anna::RuntimeException("Empty vendor-name string not allowed", ANNA_FILE_LOCATION);
a_name = n;
if(n == "") throw anna::RuntimeException("Empty vendor-name string not allowed", ANNA_FILE_LOCATION);
a_name = n;