[Positioner] posexcept: add element_already_exists

This commit is contained in:
Matteo Cypriani 2013-10-02 17:33:02 -04:00
parent 5520541217
commit 939ef17d6a
2 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,11 @@ cannot_merge(const string &_explanation) throw():
posexcept(_explanation) {}
element_already_exists::
element_already_exists(const string &_explanation) throw():
posexcept("Element already exists in collection: " + _explanation) {}
element_not_found::
element_not_found(const string &_explanation) throw():
posexcept("Element not found in collection: " + _explanation) {}

View File

@ -50,6 +50,13 @@ public:
} ;
class element_already_exists: public posexcept
{
public:
element_already_exists(const std::string &_explanation) throw() ;
} ;
class element_not_found: public posexcept
{
public: