File: errors.h

package info (click to toggle)
althea 0.5.5-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,196 kB
  • ctags: 725
  • sloc: cpp: 8,194; makefile: 214; sh: 44
file content (85 lines) | stat: -rw-r--r-- 1,377 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//  
//  errors.h  --  set an array of errornumbers and what they mean
//  -- created 5/22/00  updated 5/22/00
/////////////////////////////////////////////

#ifndef ERRORS_H
#define ERRORS_H
namespace std {};
using namespace std;

// define the number of errors we are going to keep 
// track of in this array

enum errors {

  BEG_SUCCESS,

  // general
  SUCCESS,

  // fun server news
  NEW_MAIL,
  SUCCESSFUL_SERVER_READ,


  //IMAP Stuff
  END_SUCCESS,

  BEG_FAIL,


  // errors sending mail
  TO_NOT_SPECIFIED,
  SENDER_NOT_SPECIFIED,

  // server problems
  LOST_FOLDER_LOCK,
  LOST_CONNECTION_TO_SERVER,
  COMMAND_TO_SERVER_FAILED,
  COMMAND_OR_ARGUMENTS_INVALID,

  //Login related
  SERVER_NOT_READY_FOR_CONNECTION,
  BAD_LOGIN,


  //LIST folders
  LIST_FAILED,

  // get message, get header, set flag, seq2uid
  MESSAGE_NOT_THERE,
   
  // create folder
  CREATE_FOLDER_FAILED,

  // delete folder
  DELETE_FAILED_DUE_TO_INFERIOR, //there are files/directories in the folder
  DELETE_FAILED,
  NO_DELETE_INBOX, //you shouldn't delete the INBOX
  
  // rename
  RENAME_FAILED,
   
  // copy
  COPY_FAILED_DUE_TO_NO_FOLDER,
  COPY_FAILED,

  // append
  APPEND_FAILED_DUE_TO_NO_FOLDER,
  APPEND_FAILED,


  // SMTP
  SMTP_HOST_NOT_READY,
  SMTP_HOST_NO_HELO,
  SMTP_FROM_ERR,
  SMTP_TO_ERR,
  SMTP_DATA_ERR,
  SMTP_SEND_ERR,
  SMTP_QUIT_ERR,

  END_FAIL
};

#endif