refactor exceptions and exceptions hierarchy

This commit is contained in:
Johann Dreo 2020-03-26 07:53:23 +01:00
commit 3b01169726
2 changed files with 106 additions and 59 deletions

View file

@ -122,9 +122,9 @@ public :
/**
* Loading error thrown when nothing seems to work.
*/
struct loading_error : public std::runtime_error
struct loading_error : public eoException
{
loading_error(std::string huh = "Error while loading") : std::runtime_error(huh) {}
loading_error(std::string huh = "Error while loading") : eoException(huh) {}
};
std::string getCommentString(void) const { return "#"; }