All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencent.devops.process.pojo.trigger.PipelineTriggerFailedErrorCode.kt Maven / Gradle / Ivy

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()
            )
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy