diff options
author | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2014-12-04 21:57:37 -0800 |
---|---|---|
committer | Hoa V. Dinh <dinh.viet.hoa@gmail.com> | 2014-12-04 21:57:52 -0800 |
commit | 863dfb4b5d8832f770585d713c3fecc12cade52c (patch) | |
tree | 1b0fdf779d4f9bfbb3e4e8535f1ff2f8ee2860fc | |
parent | 7d300550c1236106668f2e0872a6c38ef4e66383 (diff) |
Fixed mapping of errors
-rw-r--r-- | src/core/abstract/MCMessageConstants.h | 10 | ||||
-rw-r--r-- | src/objc/abstract/MCOConstants.h | 14 |
2 files changed, 14 insertions, 10 deletions
diff --git a/src/core/abstract/MCMessageConstants.h b/src/core/abstract/MCMessageConstants.h index 1b45ea69..1c489583 100644 --- a/src/core/abstract/MCMessageConstants.h +++ b/src/core/abstract/MCMessageConstants.h @@ -208,7 +208,7 @@ namespace mailcore { }; enum ErrorCode { - ErrorNone, + ErrorNone, // 0 ErrorConnection, ErrorTLSNotAvailable, ErrorParse, @@ -218,7 +218,7 @@ namespace mailcore { ErrorGmailExceededBandwidthLimit, ErrorGmailTooManySimultaneousConnections, ErrorMobileMeMoved, - ErrorYahooUnavailable, + ErrorYahooUnavailable, // 10 ErrorNonExistantFolder, ErrorRename, ErrorDelete, @@ -228,7 +228,7 @@ namespace mailcore { ErrorCopy, ErrorExpunge, ErrorFetch, - ErrorIdle, + ErrorIdle, // 20 ErrorIdentity, ErrorNamespace, ErrorStore, @@ -238,7 +238,7 @@ namespace mailcore { ErrorStorageLimit, ErrorSendMessageNotAllowed, ErrorNeedsConnectToWebmail, - ErrorSendMessage, + ErrorSendMessage, // 30 ErrorAuthenticationRequired, ErrorFetchMessageList, ErrorDeleteMessage, @@ -248,7 +248,7 @@ namespace mailcore { ErrorNoSender, ErrorNoRecipient, ErrorNoop, - ErrorGmailApplicationSpecificPasswordRequired, + ErrorGmailApplicationSpecificPasswordRequired, // 40 ErrorServerDate, }; diff --git a/src/objc/abstract/MCOConstants.h b/src/objc/abstract/MCOConstants.h index 2752c34b..826d047f 100644 --- a/src/objc/abstract/MCOConstants.h +++ b/src/objc/abstract/MCOConstants.h @@ -324,7 +324,7 @@ typedef NS_ENUM(NSInteger, MCOIMAPCapability) { /** Here's the list of errors.*/ typedef NS_ENUM(NSInteger, MCOErrorCode) { /** No error occurred.*/ - MCOErrorNone, + MCOErrorNone, // 0 /** An error related to the connection occurred.*/ /** It could not connect or it's been disconnected.*/ MCOErrorConnection, @@ -345,7 +345,7 @@ typedef NS_ENUM(NSInteger, MCOErrorCode) { /** Specific to Mobile Me: Moved to iCloud.*/ MCOErrorMobileMeMoved, /** Specific to Yahoo: not available.*/ - MCOErrorYahooUnavailable, + MCOErrorYahooUnavailable, // 10 /** Non existant folder, select failed.*/ MCOErrorNonExistantFolder, /** IMAP: Error occurred while renaming a folder.*/ @@ -365,7 +365,7 @@ typedef NS_ENUM(NSInteger, MCOErrorCode) { /** IMAP: Error occurred while fetching messages.*/ MCOErrorFetch, /** IMAP: Error occurred while IDLing.*/ - MCOErrorIdle, + MCOErrorIdle, // 20 /** IMAP: Error occurred while sending/getting identity.*/ MCOErrorIdentity, /** IMAP: Error occurred while getting namespace.*/ @@ -385,7 +385,7 @@ typedef NS_ENUM(NSInteger, MCOErrorCode) { /** SMTP: Specific to hotmail. Needs to connect to webmail.*/ MCOErrorNeedsConnectToWebmail, /** SMTP: Error while sending message.*/ - MCOErrorSendMessage, + MCOErrorSendMessage, // 30 /** SMTP: Authentication required.*/ MCOErrorAuthenticationRequired, /** POP: Error occurred while fetching message list.*/ @@ -394,6 +394,8 @@ typedef NS_ENUM(NSInteger, MCOErrorCode) { MCOErrorDeleteMessage, /** SMTP: Error while checking account.*/ MCOErrorInvalidAccount, + /** Error when accessing/reading/writing file.*/ + MCOErrorFile, /** IMAP: Error when trying to enable compression.*/ MCOErrorCompression, /** SMTP: Error when no sender has been specified.*/ @@ -404,7 +406,9 @@ typedef NS_ENUM(NSInteger, MCOErrorCode) { MCOErrorNoop, /** IMAP: Error when the password has been entered but second factor authentication is enabled: an application specific password is required. */ - MCOErrorGmailApplicationSpecificPasswordRequired, + MCOErrorGmailApplicationSpecificPasswordRequired, // 40 + /** NNTP: error when requesting date */ + MCOErrorServerDate, /** The count of all errors */ MCOErrorCodeCount, }; |