package cn.muchinfo.rma.netManage.base


/**
 *   @auther : lbl
 *   time   : 2021/1/02
 */
class DataException(val code: Int = NULL_ERROR, errorMsg: CharSequence? = "") : RuntimeException(errorMsg?.toString() ?: "") {

    companion object {
        /** 没有数据 */
        const val NULL_ERROR = 0
        /** 数据解析错误 */
        const val PARSE_ERROR = 1
        /** 参数错误 */
        const val PARAM_ERROR = 2
        /** 初始化错误 */
        const val INIT_ERROR = 3
    }

}


class InteractiveException(@Suppress("MemberVisibilityCanPrivate") val errorMessage: CharSequence) : RuntimeException(errorMessage.toString())

