internal static Exception CacheLoadedLuaNotFound(string instanceName) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.LoadedLuaNotFound); exception.Data["InstanceName"] = instanceName; return(exception); }
internal static Exception NoEntitySchemaFound(string type) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.NoEntitySchemaFound); exception.Data["Type"] = type; return(exception); }
internal static Exception LackKVStoreKeyAttributeError(string type) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.LackKVStoreKeyAttributeError); exception.Data["Type"] = type; return(exception); }
internal static Exception NoSuchInstance(string instanceName) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.NoSuchInstance); exception.Data["InstanceName"] = instanceName; return(exception); }
internal static Exception Unkown(string type, Exception innerException) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.UnKown, innerException); exception.Data["Type"] = type; return(exception); }
internal static Exception KVStoreRedisTimeout(string type, Exception innerException) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.KVStoreRedisTimeout, innerException); exception.Data["Type"] = type; return(exception); }
internal static Exception KVStoreRedisConnectionFailed(string type, Exception innerException) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.RedisConnectionFailed, innerException); exception.Data["Type"] = type; return(exception); }
internal static Exception Unkown(string type, string storeName, object?key, Exception innerException) { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.UnKown, innerException); exception.Data["Type"] = type; exception.Data["StoreName"] = storeName; exception.Data["Key"] = key; return(exception); }
internal static Exception WriteError(string type, string storeName, object?keys, object?values, ErrorCode errorCode) { KVStoreException exception = new KVStoreException(errorCode); exception.Data["Type"] = type; exception.Data["StoreName"] = storeName; exception.Data["Keys"] = keys; exception.Data["Values"] = values; return(exception); }
internal static Exception VersionsKeysNotEqualError() { KVStoreException exception = new KVStoreException(KVStoreErrorCodes.VersionsKeysNotEqualError); return(exception); }