diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-01 21:26:58 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-12-01 21:26:58 +0900 |
| commit | f0f4f8f703b8c927fe8008daecb2d0547d486973 (patch) | |
| tree | aa9f93e55f375f342cc72fb62b5d1cca240c07be /src/error_code.h | |
| parent | 6bc215fcec22d8bdf760c78cc25cb8798266c8a5 (diff) | |
Added more error code values.
I have not set error code for all exception invocation.
In this change, I set error code where error likely occurs.
Diffstat (limited to 'src/error_code.h')
| -rw-r--r-- | src/error_code.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/error_code.h b/src/error_code.h index 3678c6b6..e9670a11 100644 --- a/src/error_code.h +++ b/src/error_code.h @@ -57,7 +57,21 @@ enum Value { DUPLICATE_DOWNLOAD = 11, DUPLICATE_INFO_HASH = 12, FILE_ALREADY_EXISTS = 13, - FILE_RENAMING_FAILED = 14 + FILE_RENAMING_FAILED = 14, + FILE_OPEN_ERROR = 15, + FILE_CREATE_ERROR = 16, + FILE_IO_ERROR = 17, + DIR_CREATE_ERROR = 18, + NAME_RESOLVE_ERROR = 19, + METALINK_PARSE_ERROR = 20, + FTP_PROTOCOL_ERROR = 21, + HTTP_PROTOCOL_ERROR = 22, + HTTP_TOO_MANY_REDIRECTS = 23, + HTTP_AUTH_FAILED = 24, + BENCODE_PARSE_ERROR = 25, + BITTORRENT_PARSE_ERROR = 26, + MAGNET_PARSE_ERROR = 27, + OPTION_ERROR = 28 }; } // namespace error_code |
