[Positioner] posexcept: add element_already_exists
This commit is contained in:
parent
5520541217
commit
939ef17d6a
|
@ -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) {}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue