aboutsummaryrefslogtreecommitdiffstats
path: root/src/addressList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/addressList.cpp')
-rw-r--r--src/addressList.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/addressList.cpp b/src/addressList.cpp
index 756156d1..15b9227b 100644
--- a/src/addressList.cpp
+++ b/src/addressList.cpp
@@ -151,7 +151,7 @@ void addressList::insertAddressBefore(shared_ptr <address> beforeAddress, shared
(m_list.begin(), m_list.end(), beforeAddress);
if (it == m_list.end())
- throw std::out_of_range();
+ throw std::out_of_range("Invalid position");
m_list.insert(it, addr);
}
@@ -160,7 +160,7 @@ void addressList::insertAddressBefore(shared_ptr <address> beforeAddress, shared
void addressList::insertAddressBefore(const size_t pos, shared_ptr <address> addr)
{
if (pos >= m_list.size())
- throw std::out_of_range();
+ throw std::out_of_range("Invalid position");
m_list.insert(m_list.begin() + pos, addr);
}
@@ -172,7 +172,7 @@ void addressList::insertAddressAfter(shared_ptr <address> afterAddress, shared_p
(m_list.begin(), m_list.end(), afterAddress);
if (it == m_list.end())
- throw std::out_of_range();
+ throw std::out_of_range("Invalid position");
m_list.insert(it + 1, addr);
}
@@ -181,7 +181,7 @@ void addressList::insertAddressAfter(shared_ptr <address> afterAddress, shared_p
void addressList::insertAddressAfter(const size_t pos, shared_ptr <address> addr)
{
if (pos >= m_list.size())
- throw std::out_of_range();
+ throw std::out_of_range("Invalid position");
m_list.insert(m_list.begin() + pos + 1, addr);
}
@@ -193,7 +193,7 @@ void addressList::removeAddress(shared_ptr <address> addr)
(m_list.begin(), m_list.end(), addr);
if (it == m_list.end())
- throw std::out_of_range();
+ throw std::out_of_range("Invalid position");
m_list.erase(it);
}
@@ -202,7 +202,7 @@ void addressList::removeAddress(shared_ptr <address> addr)
void addressList::removeAddress(const size_t pos)
{
if (pos >= m_list.size())
- throw std::out_of_range();
+ throw std::out_of_range("Invalid position");
const std::vector <shared_ptr <address> >::iterator it = m_list.begin() + pos;