-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* modify exception * modify exception2 * modify account * append attachment
- Loading branch information
1 parent
da0d09f
commit 98411c9
Showing
10 changed files
with
467 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
#ifndef MAILCLIENTEXCEPTION_H | ||
#define MAILCLIENTEXCEPTION_H | ||
#include <qstring.h> | ||
#include <QString> | ||
#include <QtDebug> | ||
|
||
#include <string> | ||
#include <exception> | ||
#include <iostream> | ||
using namespace std; | ||
|
||
class MailClientException: public exception | ||
{ | ||
public: | ||
MailClientException() {} | ||
MailClientException(const string& exc): exception(exc.c_str()) {} | ||
MailClientException(const MailClientException& mce): exception(mce) {} | ||
virtual ~MailClientException() throw() = 0; | ||
virtual const char* what() const = 0; | ||
string message; | ||
public: | ||
MailClientException() { | ||
// qDebug() << "MailClientException default Constructor\n"; | ||
message = exception::what(); | ||
} | ||
MailClientException(const string& exc): exception(exc.c_str()) { | ||
// qDebug() << "MailClientException string Constructor\n"; | ||
message = exception::what(); | ||
} | ||
MailClientException(const MailClientException& mce): exception(mce){ | ||
// qDebug() << "MailClientException copy Constructor\n"; | ||
message = exception::what(); | ||
} | ||
virtual ~MailClientException() noexcept = 0 {} | ||
virtual const char* what() = 0; | ||
}; | ||
|
||
MailClientException::~exception() {} | ||
|
||
|
||
#endif // MAILCLIENTEXCEPTION_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.