All files / src error.js

0% Statements 0/8
100% Branches 0/0
0% Functions 0/8
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35                                                                     
export default {
    NOT_DEFINED_NAMESPACE: () => ({
        CN: `[teeMo.model] 应该定义 namespace`,
        EN: `[teeMo.model] namespace should be defined`
    }),
    NAMESPACE_TYPE_SHOULD_BE_STRING: (type) => ({
        CN: `[teeMo.model] namespace必须是string类型,当前namespace的类型是 [${type}]`,
        EN: `[teeMo.model] namespace should be string,the current namespace type is [${type}]`
    }),
    NAMESPACE_SHOULD_BE_UNIQUE: () => ({
        CN: `[teeMo.model] namespace必须唯一`,
        EN: `[teeMo.model] namespace should be unique`
    }),
    REDUCERS_BE_PLAIN_OBJECT: (type) => ({
        CN: `[teeMo.model] reducers必须是一个普通的javaScript对象,当前的reducer的类型是 [${type}]`,
        EN: `[teeMo.model] reducers should be plain object,the current reducer type is [${type}]`
    }),
    EFFECTS_BE_PLAIN_OBJECT: (type) => ({
        CN: `[teeMo.model] effects必须是一个普通的javaScript对象,当前的effect的类型是 [${type}]`,
        EN: `[teeMo.model] effects should be plain object,the current effect type is [${type}]`
    }),
    CAN_NOT_BE_DEL_DEFAULT_MODEL: (namespace) => ({
        CN: `[teeMo.delModel] 不可以删除一个系统默认的model , 当前传入期望删除的model的namespace为 [${namespace}] `,
        EN: `[teeMo.delModel] cannot delete a system default model; the namespace of the model that is currently passed in to be deleted is [${namespace}]`
    }),
    STORE_IS_NOT_STARTED:() => ({
        CN:`[teeMo.Store] 数据仓库尚未启动!`,
        EN:`[teeMo.Store] the data warehouse has not started yet!`
    }),
    STORE_IS_STARTED:() => ({
        CN:`[teeMo.Store] 数据仓库已经启动!`,
        EN:`[teeMo.Store] the data warehouse has started!`
    })
 
}