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

com.tairitsu.ignotus.exception.business.PageInvalidException.kt Maven / Gradle / Ivy

There is a newer version: 1.0.32
Show newest version
package com.tairitsu.ignotus.exception.business

import com.tairitsu.ignotus.exception.SingleApiException

/**
 * 业务异常:页码无效
 */
class PageInvalidException(reason: Reason) : SingleApiException(500,
    CODE,
    Translation.translateDetail(CODE, reason.s)) {

    companion object {
        const val CODE = "page_invalid"
    }

    enum class Reason(val s: String) {
        START_AT_ERROR("start_at_error")
    }

    init {
        this.title = Translation.translateTitle(CODE)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy