home *** CD-ROM | disk | FTP | other *** search
- <%
- // MAKE SURE THIS IS AN IMAGE OF ASPERRORS.JS (MUTATIS MUTANDIS)
-
- const ASPERR_SUCCESS = 0
-
- const ASPERR_CREATELOCALFAILED = 1
- const ASPERR_CREATEREMOTEFAILED = 2
- const ASPERR_CREATEDOMAINEXISTS = 3
- const ASPERR_NODOMAINTODELETE = 4
- const ASPERR_DELETDOMAINFAILED = 5
- const ASPERR_NODOMAINTORENAME = 6
- const ASPERR_RENAMEDOMAINFAILED = 7
- const ASPERR_CREATEDOMAINALIASFAILED = 8
- const ASPERR_CREATEDOMAINALIASEXISTS = 9
- const ASPERR_NODOMAINTOALIAS = 10
- const ASPERR_DELETDOMAINALIASFAILED = 11
-
- const ASPERR_CREATEMAILBOXFAILED = 20
- const ASPERR_CREATEMAILBOXEXISTS = 21
- const ASPERR_NOMAILBOXTODELETE = 22
- const ASPERR_DELETEMAILBOXFAILED = 23
-
- const ASPERR_CREATESMARTPOPFAILED = 40
- const ASPERR_CREATESMARTPOPEXISTS = 41
- const ASPERR_NOSMARTPOPTODELETE = 42
- const ASPERR_DELETESMARTPOPFAILED = 43
-
- const ASPERR_CREATESCHEDULEFAILED = 60
- const ASPERR_CREATESCHEDULEEXISTS = 61
- const ASPERR_DELETESCHEDULEFAILED = 62
- const ASPERR_NOSCHEDULETODELETE = 63
- const ASPERR_NOSCHEDULETORENAME = 64
- const ASPERR_RENAMESCHEDULEFAILED = 65
- const ASPERR_SELECTSCHEDULEFAILED = 66
-
- const ASPERR_ROUTEALREADYEXISTS = 80
- const ASPERR_INSERTROUTEFAILED = 81
- const ASPERR_DELETEROUTEFAILED = 82
- const ASPERR_DELETEROUTEINVALID = 83
-
- const ASPERR_SERVICEEXISTS = 100
-
- function aspError(code)
- {
- if (code==0)
- return "Success"
- else if (code==ASPERR_CREATELOCALFAILED)
- return "Failed to create local domain.\n\nMake sure the domain does not already exist.\nAnd it is of the form 'domain.com'"
- else if (code==ASPERR_CREATEREMOTEFAILED)
- return "Failed to create remote domain.\n\nMake sure the domain name is of the form 'domain.com'.\nNames like 'domain' are not allowed."
- else if (code==ASPERR_CREATEDOMAINEXISTS)
- return "Failed to create domain. It already exists."
- else if (code==ASPERR_NODOMAINTODELETE)
- return "Failed to delete domain. It does not exist."
- else if (code==ASPERR_DELETDOMAINFAILED)
- return "Failed to delete domain."
- else if (code==ASPERR_NODOMAINTORENAME)
- return "Failed to rename Domain. It does not exist."
- else if (code==ASPERR_RENAMEDOMAINFAILED)
- return "Failed to rename Domain."
- else if (code==ASPERR_CREATEDOMAINALIASFAILED)
- return "Failed to create Domain alias."
- else if (code==ASPERR_CREATEDOMAINALIASEXISTS)
- return "Failed to create mailbox. It already exists."
- else if (code==ASPERR_NODOMAINTOALIAS)
- return "Failed to create Domain alias. Domain does not exist."
- else if (code==ASPERR_DELETDOMAINALIASFAILED)
- return "Failed to delete Domain alias."
-
- else if (code==ASPERR_CREATEMAILBOXFAILED)
- return "Failed to create Mailbox."
- else if (code==ASPERR_CREATEMAILBOXEXISTS)
- return "Failed to create Mailbox. It already exists."
- else if (code==ASPERR_NOMAILBOXTODELETE)
- return "Failed to delete Mailbox. It does not exist."
- else if (code==ASPERR_DELETEMAILBOXFAILED)
- return "Failed to delete Mailbox."
-
- else if (code==ASPERR_CREATESMARTPOPFAILED)
- return "Failed to create SmartPop."
- else if (code==ASPERR_CREATESMARTPOPEXISTS)
- return "Failed to create SmartPop. It already exists."
- else if (code==ASPERR_NOSMARTPOPTODELETE)
- return "Failed to delete Schedule. It does not exist."
- else if (code==ASPERR_DELETESMARTPOPFAILED)
- return "Failed to delete SmartPop."
-
- else if (code==ASPERR_CREATESCHEDULEFAILED)
- return "Failed to create Schedule."
- else if (code==ASPERR_CREATESCHEDULEEXISTS)
- return "Failed to create Schedule. It already exists."
- else if (code==ASPERR_DELETESCHEDULEFAILED)
- return "Failed to delete Schedule."
- else if (code==ASPERR_NOSCHEDULETODELETE)
- return "Failed to delete Schedule. It does not exist."
- else if (code==ASPERR_NOSCHEDULETORENAME)
- return "Failed to rename Schedule. It does not exist."
- else if (code==ASPERR_RENAMESCHEDULEFAILED)
- return "Failed to rename Schedule."
- else if (code==ASPERR_SELECTSCHEDULEFAILED)
- return "Schedule does not exist."
-
- else if (code==ASPERR_ROUTEALREADYEXISTS)
- return "Failed to create Routing. Route already exists."
- else if (code==ASPERR_INSERTROUTEFAILED)
- return "Failed to create Routing."
- else if (code==ASPERR_DELETEROUTEFAILED)
- return "Failed to delete Routing."
- else if (code==ASPERR_DELETEROUTEINVALID)
- return "Failed to delete Routing. Route does not exist."
-
- else if (code==ASPERR_SERVICEALREADYEXISTS)
- return "Failed to create Service. Service already exists with this name."
-
- else
- return "("+code+") Unknown error"
- }
-
- %>