com.tencent.devops.process.pojo.trigger.PipelineTriggerFailedErrorCode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-process Show documentation
Show all versions of api-process Show documentation
Tencent blueking ci project
The newest version!
package com.tencent.devops.process.pojo.trigger
import com.tencent.devops.common.web.utils.I18nUtil
import io.swagger.v3.oas.annotations.media.Schema
@Schema(title = "流水线触发事件原因详情-有错误码异常")
data class PipelineTriggerFailedErrorCode(
val errorCode: String,
val params: List? = null
) : PipelineTriggerReasonDetail {
companion object {
const val classType = "errorCode"
}
override fun getReasonDetailList(): List {
return listOf(
I18nUtil.getCodeLanMessage(
messageCode = errorCode,
params = params?.toTypedArray()
)
)
}
}