Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

203 lines
6.9 KiB

  1. -- Script: uddi.v2.messages.sql
  2. -- Author: [email protected]
  3. -- Description: Custom UDDI error messages.
  4. -- Note: This file is best viewed and edited with a tab width of 2.
  5. DECLARE
  6. @baseError int,
  7. @messageNum int,
  8. @severity smallint,
  9. @messageText nvarchar(255),
  10. @lang sysname,
  11. @withLog varchar(5),
  12. @replace varchar(7)
  13. -- Initialize common variables for all messages
  14. SET @baseError = 50000
  15. SET @severity = 16 -- user error
  16. SET @lang = 'us_english' -- all errors are english
  17. SET @withLog = 'FALSE' -- errors will not be written to application event log
  18. SET @replace = 'REPLACE' -- replaces existing message with new one if it exists
  19. -- Add messages
  20. -- Internal Microsoft UDDI Errors
  21. -- E_subProcFailure
  22. SET @messageNum = @baseError + 6
  23. SET @messageText = N'%s'
  24. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  25. -- E_parmError
  26. SET @messageNum = @baseError + 9
  27. SET @messageText = N'%s'
  28. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  29. -- E_maxStringLength
  30. SET @messageNum = @baseError + 10
  31. SET @messageText = N'%s'
  32. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  33. -- E_userDisabled
  34. SET @messageNum = @baseError + 13
  35. SET @messageText = N'%s'
  36. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  37. -- E_configError
  38. SET @messageNum = @baseError + 14
  39. SET @messageText = N'%s'
  40. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  41. -- E_invalidSeqNo
  42. SET @messageNum = @baseError + 15
  43. SET @messageText = N'%s'
  44. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  45. -- E_invalidCert
  46. SET @messageNum = @baseError + 16
  47. SET @messageText = N'%s'
  48. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  49. --
  50. -- UDDI Defined Errors
  51. --
  52. -- E_nameTooLong
  53. SET @messageNum = @baseError + 10020
  54. SET @messageText = N'%s'
  55. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  56. -- E_tooManyOptions
  57. SET @messageNum = @baseError + 10030
  58. SET @messageText = N'%s'
  59. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  60. -- E_unrecognizedVersion
  61. SET @messageNum = @baseError + 10040
  62. SET @messageText = N'%s'
  63. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  64. -- E_unsupported
  65. SET @messageNum = @baseError + 10050
  66. SET @messageText = N'%s'
  67. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  68. -- E_languageError
  69. SET @messageNum = @baseError + 10060
  70. SET @messageText = N'%s'
  71. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  72. -- E_authTokenExpired
  73. SET @messageNum = @baseError + 10110
  74. SET @messageText = N'%s'
  75. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  76. -- E_authTokenRequired
  77. SET @messageNum = @baseError + 10120
  78. SET @messageText = N'%s'
  79. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  80. -- E_operatorMismatch
  81. SET @messageNum = @baseError + 10130
  82. SET @messageText = N'%s'
  83. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  84. -- E_userMismatch
  85. SET @messageNum = @baseError + 10140
  86. SET @messageText = N'%s'
  87. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  88. -- E_unknownUser
  89. SET @messageNum = @baseError + 10150
  90. SET @messageText = N'%s'
  91. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  92. -- E_accountLimitExceeded
  93. SET @messageNum = @baseError + 10160
  94. SET @messageText = N'%s'
  95. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  96. -- E_invalidKeyPassed
  97. SET @messageNum = @baseError + 10210
  98. SET @messageText = N'%s'
  99. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  100. -- E_invalidURLPassed
  101. SET @messageNum = @baseError + 10220
  102. SET @messageText = N'%s'
  103. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  104. -- E_keyRetired
  105. SET @messageNum = @baseError + 10310
  106. SET @messageText = N'%s'
  107. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  108. -- E_busy
  109. SET @messageNum = @baseError + 10400
  110. SET @messageText = N'%s'
  111. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  112. -- E_fatalError
  113. SET @messageNum = @baseError + 10500
  114. SET @messageText = N'%s'
  115. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  116. -- E_invalidCategory
  117. SET @messageNum = @baseError + 20000
  118. SET @messageText = N'%s'
  119. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  120. -- E_categorizationNotAllowed
  121. SET @messageNum = @baseError + 20100
  122. SET @messageText = N'%s'
  123. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  124. -- E_invalidValue
  125. SET @messageNum = @baseError + 20200
  126. SET @messageText = N'%s'
  127. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  128. -- E_valueNotAllowed
  129. SET @messageNum = @baseError + 20210
  130. SET @messageText = N'%s'
  131. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  132. -- E_invalidProjection
  133. SET @messageNum = @baseError + 20230
  134. SET @messageText = N'%s'
  135. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  136. -- E_assertionNotFound
  137. SET @messageNum = @baseError + 30000
  138. SET @messageText = N'%s'
  139. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  140. -- E_invalidCompletionStatus
  141. SET @messageNum = @baseError + 30100
  142. SET @messageText = N'%s'
  143. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  144. -- V2 spec error: duplicate error number
  145. -- SET @messageNum = @baseError + 30100
  146. -- SET @messageText = N'E_messageTooLarge: %s'
  147. -- EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  148. -- E_transferAborted
  149. SET @messageNum = @baseError + 30200
  150. SET @messageText = N'%s'
  151. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  152. -- E_requestDenied
  153. SET @messageNum = @baseError + 30210
  154. SET @messageText = N'%s'
  155. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  156. -- E_publisherCancelled
  157. SET @messageNum = @baseError + 30220
  158. SET @messageText = N'%s'
  159. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  160. -- E_secretUnknown
  161. SET @messageNum = @baseError + 30230
  162. SET @messageText = N'%s'
  163. EXEC master..sp_addmessage @messageNum, @severity, @messageText, @lang, @withLog, @replace
  164. GO