ep_ecode.go 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. package ecode
  2. // ep ecode interval is [0,990000]
  3. var (
  4. //merlin/paas
  5. MerlinInvalidClusterErr = New(80001) // 集群不合法
  6. MerlinPaasRequestErr = New(80002) // Paas 请求错误
  7. //merlin/tree
  8. MerlinGetUserTreeFailed = New(80010) //获取 tree 节点失败
  9. MerlinTreeResponseErr = New(80011) //请求 Tree 失败
  10. MerlinShouldTreeFullPath = New(80012) //节点不合法
  11. MerlinTreeRequestErr = New(80013) //服务树请求错误
  12. MerlinLoseTreeContainerNodeErr = New(80014) //当前节点下不存在 dev/container 子节点
  13. MerlinUserNoAccessTreeNode = New(80034) //用户没有该服务树节点权限
  14. //merlin
  15. MerlinDuplicateMachineNameErr = New(81001) // 机器名称重复
  16. MerlinInvalidMachineAmountErr = New(81002) //机器数量不合法
  17. MerlinInvalidNodeAmountErr = New(81003) //挂载节点数必须大于0且不大于10
  18. MerlinUpdateNodeErr = New(81004) //更新节点失败
  19. MerlinCanNotBeDel = New(81040) //创建状态机器无法删除
  20. //other
  21. MerlinIllegalPageNumErr = New(89001) //分页页码不合法
  22. MerlinIllegalPageSizeErr = New(89002) //分页大小不合法
  23. MerlinDelayMachineErr = New(89010) //机器自主延期失败
  24. MerlinApplyMachineErr = New(89011) //机器申请延期失败
  25. MerlinCancelMachineErr = New(89012) //机器取消延期失败
  26. MerlinAuditMachineErr = New(89013) //机器审核延期失败
  27. MerlinApplyMachineByApplyEndTimeMore3MErr = New(89014) //机器申请延期失败
  28. //hubbili
  29. MerlinHubRequestErr = New(89015) //请求bilihub失败
  30. MerlinHubNoRight = New(89016) //没有权限执行
  31. MerlinImagePullErr = New(89017) //下载镜像失败
  32. MerlinImagePushErr = New(89018) //上传镜像失败
  33. MerlinImageTagErr = New(89019) //Tag镜像失败
  34. MerlinSnapshotInDoingErr = New(89024) //快照进行中
  35. MerlinNoHubAccount = New(89026) //该用户没有Hub账号
  36. MerlinDuplicateImageNameErr = New(89028) //镜像名称重复
  37. MerlinMachine2ImageInDoingErr = New(89029) //机器转镜像进行中
  38. MerlinMachineImageNotSameErr = New(89030) //镜像名称不一致
  39. MerlinDeviceNotBind = New(89020) //设备未绑定
  40. MerlinDeviceFarmErr = New(89021) //DeviceFarm Error
  41. MerlinDeviceFarmMachineStatusErr = New(89025) //Merlin Device Farm Machine StatusErr
  42. MerlinDeviceIsNotRealMachineErr = New(89031) //该操作只支持真机
  43. MerlinDeviceIsLendOut = New(89032) //真机需在机架上才能操作
  44. MerlinDeviceNoRight = New(89033) //无权限操作
  45. // user
  46. MerlinUserNotExist = New(89034) //用户不存在
  47. MartheBuglyErr = New(89022) //MartheBuglyErr
  48. MartheTapdErr = New(89023) //Tapd请求错误
  49. MartheTapdResDataErr = New(89050) //Tapd返回数据错误
  50. MartheTaskInRunning = New(89047) //有任务正在执行
  51. MartheNoProjectInfo = New(89045)
  52. MartheBugTaskInRunning = New(89041)
  53. MartheDuplicateErr = New(81044) // 名称重复
  54. MartheNoCookie = New(89042)
  55. MartheCookieExpired = New(89043) //cookie过期
  56. MartheFilterSqlError = New(89046) //过滤sql error.
  57. MartheTimeConflictError = New(89048) //时间冲突.
  58. //melloi/PaaS
  59. MelloiPaasRequestErr = New(60002) // Paas 请求错误
  60. MeilloiIllegalPageNumErr = New(60004) //分页页码不合法
  61. MeilloillegalPageSizeErr = New(60005) //分页大小不合法
  62. MelloiTreeRequestErr = New(60001) //Tree 请求错误
  63. MelloiAdminExist = New(60003) //管理员存在
  64. MelloiUpdateUserErr = New(60006) //更新用户权限
  65. MelloiApplyRequestErr = New(60008) //申请请求错误
  66. MelloiLabelRelationNotExist = New(60009) //标签关系存在
  67. MelloiLabelCountErr = New(60010) //Label 数量超过2
  68. MelloiLabelExistErr = New(60011) //Label数量存在
  69. MelloiRunNotInTime = New(60012) //非压测时间段
  70. MelloiJmeterGenerateErr = New(60013) //Jmeter脚本生成失败
  71. MelloiProtoFileNotUploaded = New(60014) // proto文件没有上传
  72. MelloiProtocError = New(60015) // protoc 编译失败
  73. MelloiProtoJavaPluginError = New(60016) // protoc java插件编译失败
  74. MelloiJavacCompileError = New(60017) // javac 编译失败
  75. MelloiJarError = New(60018) // Jar打包失败
  76. MelloiUrlParseError = New(60019) // URL 解析错误
  77. MelloiBeyondFileSize = New(60020) // 文件太大
  78. MelloiCopyFileErr = New(60021) // 文件复制错误
  79. )