00001 #ifndef EXEPTIONS_H 00002 #define EXEPTIONS_H 00003 #include <QString> 00004 class Exeptions 00005 { 00006 public: 00011 Exeptions(const QString & Troublemaker_comment = ""); 00017 Exeptions(int Error_number,const QString & Troublemaker_comment = ""); 00026 Exeptions(int Error_number,const QString & Reason,const QString & Troublemaker_comment = ""); 00035 Exeptions(int Error_number,const QString & Reason,int Place,const QString & Troublemaker_comment = ""); 00044 Exeptions(int Error_number,const QString & Reason,const QString & Place_words,const QString & Troublemaker_comment = ""); 00049 QString getErrorMessage(); 00050 00051 protected: 00057 void makeErrorMessage(int detail_level = 0); 00058 00059 00060 int error_number;//Numer bledu 00061 QString error_message;//gotowy komunikat bledu 00062 int place;//miejsce bledu 00063 QString place_words;//miejsce bledu slownie 00064 QString reason; //Powod bledu 00065 QString troublemaker_comment;//Opcjonalny komentarz 00066 00067 00068 }; 00069 #endif