Slightly improved error messages in the dialog framework

This commit is contained in:
2014-04-14 14:53:37 -04:00
parent a2ca0bf3b1
commit b68abf037d
2 changed files with 74 additions and 68 deletions

View File

@@ -73,6 +73,7 @@ private:
RECT winRect;
std::string defaultButton;
boost::any result;
std::string fname;
friend class cControl;
friend class cButton;
friend class cLed;
@@ -85,41 +86,41 @@ private:
};
class xBadNode : std::exception {
std::string type;
std::string type, dlg;
int row, col;
const char* msg;
public:
xBadNode(std::string t, int r, int c) throw();
xBadNode(std::string t, int r, int c, std::string dlg) throw();
~xBadNode() throw();
const char* what() throw();
};
class xBadAttr : std::exception {
std::string type, name;
std::string type, name, dlg;
int row, col;
const char* msg;
public:
xBadAttr(std::string t,std::string n, int r, int c) throw();
xBadAttr(std::string t,std::string n, int r, int c, std::string dlg) throw();
~xBadAttr() throw();
const char* what() throw();
};
class xMissingAttr : std::exception {
std::string type, name;
std::string type, name, dlg;
int row, col;
const char* msg;
public:
xMissingAttr(std::string t,std::string n, int r, int c) throw();
xMissingAttr(std::string t,std::string n, int r, int c, std::string dlg) throw();
~xMissingAttr() throw();
const char* what() throw();
};
class xBadVal : std::exception {
std::string type, name, val;
std::string type, name, val, dlg;
int row, col;
const char* msg;
public:
xBadVal(std::string t,std::string n,std::string v, int r, int c) throw();
xBadVal(std::string t,std::string n,std::string v, int r, int c, std::string dlg) throw();
~xBadVal() throw();
const char* what() throw();
};