home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / asperrors.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  4.6 KB  |  119 lines

  1. <%
  2. // MAKE SURE THIS IS AN IMAGE OF ASPERRORS.JS (MUTATIS MUTANDIS)
  3.  
  4. const ASPERR_SUCCESS                                    = 0
  5.  
  6. const ASPERR_CREATELOCALFAILED                = 1
  7. const ASPERR_CREATEREMOTEFAILED                = 2
  8. const ASPERR_CREATEDOMAINEXISTS                = 3
  9. const ASPERR_NODOMAINTODELETE                    = 4
  10. const ASPERR_DELETDOMAINFAILED                = 5
  11. const ASPERR_NODOMAINTORENAME                    = 6
  12. const ASPERR_RENAMEDOMAINFAILED                = 7
  13. const ASPERR_CREATEDOMAINALIASFAILED    = 8
  14. const ASPERR_CREATEDOMAINALIASEXISTS    = 9
  15. const ASPERR_NODOMAINTOALIAS                    = 10
  16. const ASPERR_DELETDOMAINALIASFAILED        = 11
  17.  
  18. const ASPERR_CREATEMAILBOXFAILED            = 20
  19. const ASPERR_CREATEMAILBOXEXISTS            = 21
  20. const ASPERR_NOMAILBOXTODELETE                = 22
  21. const ASPERR_DELETEMAILBOXFAILED            = 23
  22.  
  23. const ASPERR_CREATESMARTPOPFAILED            = 40
  24. const ASPERR_CREATESMARTPOPEXISTS            = 41
  25. const ASPERR_NOSMARTPOPTODELETE                = 42
  26. const ASPERR_DELETESMARTPOPFAILED            = 43
  27.  
  28. const ASPERR_CREATESCHEDULEFAILED            = 60
  29. const ASPERR_CREATESCHEDULEEXISTS            = 61
  30. const ASPERR_DELETESCHEDULEFAILED            = 62
  31. const ASPERR_NOSCHEDULETODELETE                = 63
  32. const ASPERR_NOSCHEDULETORENAME                = 64
  33. const ASPERR_RENAMESCHEDULEFAILED            = 65
  34. const ASPERR_SELECTSCHEDULEFAILED            = 66
  35.  
  36. const ASPERR_ROUTEALREADYEXISTS                = 80
  37. const ASPERR_INSERTROUTEFAILED                =    81
  38. const ASPERR_DELETEROUTEFAILED                = 82
  39. const ASPERR_DELETEROUTEINVALID                =    83
  40.  
  41. const ASPERR_SERVICEEXISTS                        = 100
  42.  
  43. function aspError(code)
  44. {
  45.     if (code==0)
  46.     return "Success"
  47.   else if (code==ASPERR_CREATELOCALFAILED)
  48.     return "Failed to create local domain.\n\nMake sure the domain does not already exist.\nAnd it is of the form 'domain.com'"
  49.   else if (code==ASPERR_CREATEREMOTEFAILED)
  50.     return "Failed to create remote domain.\n\nMake sure the domain name is of the form 'domain.com'.\nNames like 'domain' are not allowed."
  51.   else if (code==ASPERR_CREATEDOMAINEXISTS)
  52.     return "Failed to create domain. It already exists."
  53.   else if (code==ASPERR_NODOMAINTODELETE)
  54.     return "Failed to delete domain. It does not exist."
  55.   else if (code==ASPERR_DELETDOMAINFAILED)
  56.     return "Failed to delete domain."
  57.   else if (code==ASPERR_NODOMAINTORENAME)
  58.     return "Failed to rename Domain. It does not exist."
  59.   else if (code==ASPERR_RENAMEDOMAINFAILED)
  60.     return "Failed to rename Domain."
  61.   else if (code==ASPERR_CREATEDOMAINALIASFAILED)
  62.     return "Failed to create Domain alias."
  63.   else if (code==ASPERR_CREATEDOMAINALIASEXISTS)
  64.     return "Failed to create mailbox. It already exists."
  65.   else if (code==ASPERR_NODOMAINTOALIAS)
  66.     return "Failed to create Domain alias. Domain does not exist."
  67.   else if (code==ASPERR_DELETDOMAINALIASFAILED)
  68.     return "Failed to delete Domain alias."
  69.  
  70.   else if (code==ASPERR_CREATEMAILBOXFAILED)
  71.     return "Failed to create Mailbox."
  72.   else if (code==ASPERR_CREATEMAILBOXEXISTS)
  73.     return "Failed to create Mailbox. It already exists."
  74.   else if (code==ASPERR_NOMAILBOXTODELETE)
  75.     return "Failed to delete Mailbox. It does not exist."
  76.   else if (code==ASPERR_DELETEMAILBOXFAILED)
  77.     return "Failed to delete Mailbox."
  78.  
  79.   else if (code==ASPERR_CREATESMARTPOPFAILED)
  80.     return "Failed to create SmartPop."
  81.   else if (code==ASPERR_CREATESMARTPOPEXISTS)
  82.     return "Failed to create SmartPop. It already exists."
  83.   else if (code==ASPERR_NOSMARTPOPTODELETE)
  84.     return "Failed to delete Schedule. It does not exist."
  85.   else if (code==ASPERR_DELETESMARTPOPFAILED)
  86.     return "Failed to delete SmartPop."
  87.  
  88.   else if (code==ASPERR_CREATESCHEDULEFAILED)
  89.     return "Failed to create Schedule."
  90.   else if (code==ASPERR_CREATESCHEDULEEXISTS)
  91.     return "Failed to create Schedule. It already exists."
  92.   else if (code==ASPERR_DELETESCHEDULEFAILED)
  93.     return "Failed to delete Schedule."
  94.   else if (code==ASPERR_NOSCHEDULETODELETE)
  95.     return "Failed to delete Schedule. It does not exist."
  96.   else if (code==ASPERR_NOSCHEDULETORENAME)
  97.     return "Failed to rename Schedule. It does not exist."
  98.   else if (code==ASPERR_RENAMESCHEDULEFAILED)
  99.     return "Failed to rename Schedule."
  100.   else if (code==ASPERR_SELECTSCHEDULEFAILED)
  101.     return "Schedule does not exist."
  102.  
  103.   else if (code==ASPERR_ROUTEALREADYEXISTS)
  104.     return "Failed to create Routing. Route already exists."
  105.   else if (code==ASPERR_INSERTROUTEFAILED)
  106.     return "Failed to create Routing."
  107.   else if (code==ASPERR_DELETEROUTEFAILED)
  108.     return "Failed to delete Routing."
  109.   else if (code==ASPERR_DELETEROUTEINVALID)
  110.     return "Failed to delete Routing. Route does not exist."
  111.  
  112.   else if (code==ASPERR_SERVICEALREADYEXISTS)
  113.     return "Failed to create Service. Service already exists with this name."
  114.  
  115.   else
  116.     return "("+code+") Unknown error"
  117. }
  118.  
  119. %>