Remove dynamic exceptions
[anna.git] / source / comm / AccessPoint.cpp
index ef1bc8f..bf01579 100644 (file)
@@ -19,7 +19,7 @@ using namespace std;
 using namespace anna;
 
 bool comm::AccessPoint::operator == (const comm::AccessPoint& rhs) const
-throw() {
+{
   if(rhs.isNull() && this->isNull())
     return true;
 
@@ -33,7 +33,7 @@ throw() {
 }
 
 comm::AccessPoint& comm::AccessPoint::operator = (const INetAddress & inetAddress)
-throw() {
+{
   if(a_path != NULL) {
     delete a_path;
     a_path = NULL;
@@ -44,7 +44,7 @@ throw() {
 }
 
 comm::AccessPoint& comm::AccessPoint::operator = (const std::string & path)
-throw() {
+{
   if(a_path == &path)
     return *this;
 
@@ -59,7 +59,7 @@ throw() {
 }
 
 comm::AccessPoint& comm::AccessPoint::operator = (const AccessPoint & rhs)
-throw() {
+{
   if(this == &rhs)
     return *this;
 
@@ -78,7 +78,7 @@ throw() {
 }
 
 void comm::AccessPoint::translate(const comm::Socket& socket, sockaddr*& s, int& len)
-throw(RuntimeException) {
+noexcept(false) {
   switch(socket.getDomain()) {
   case Socket::Domain::Inet:
 
@@ -123,7 +123,7 @@ throw(RuntimeException) {
 }
 
 void comm::AccessPoint::asString(std::string& msg) const
-throw() {
+{
   msg += "{ ";
 
   if(a_inetAddress.isNull() == false)
@@ -138,7 +138,7 @@ throw() {
 }
 
 void comm::AccessPoint::asXML(const char* name, xml::Node* parent) const
-throw(RuntimeException) {
+noexcept(false) {
   xml::Node* accessPoint  = parent->createChild(name);
 
   if(a_inetAddress.isNull() == false)
@@ -148,7 +148,7 @@ throw(RuntimeException) {
 }
 
 std::string comm::AccessPoint::serialize() const
-throw() {
+{
   std::string result;
 
   if(a_inetAddress.isNull() == false)