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

com.tairitsu.ignotus.exception.relation.SortInvalidException.kt Maven / Gradle / Ivy

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

import com.tairitsu.ignotus.exception.SingleApiException

/**
 * 对象关系异常:不合法的排序方式
 * 用户提交的排序信息不在 Controller 定义的范围内
 */
class SortInvalidException : SingleApiException(400, CODE, Translation.translateDetail(CODE)) {
    companion object {
        const val CODE = "sort_invalid"
    }

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

        val t = HashMap()
        this.source = t
        t["parameter"] = "sort"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy