コード例 #1
0
        internal static Exception CacheLoadedLuaNotFound(string instanceName)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.LoadedLuaNotFound);

            exception.Data["InstanceName"] = instanceName;

            return(exception);
        }
コード例 #2
0
        internal static Exception NoEntitySchemaFound(string type)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.NoEntitySchemaFound);

            exception.Data["Type"] = type;

            return(exception);
        }
コード例 #3
0
        internal static Exception LackKVStoreKeyAttributeError(string type)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.LackKVStoreKeyAttributeError);

            exception.Data["Type"] = type;

            return(exception);
        }
コード例 #4
0
        internal static Exception NoSuchInstance(string instanceName)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.NoSuchInstance);

            exception.Data["InstanceName"] = instanceName;

            return(exception);
        }
コード例 #5
0
        internal static Exception Unkown(string type, Exception innerException)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.UnKown, innerException);

            exception.Data["Type"] = type;

            return(exception);
        }
コード例 #6
0
        internal static Exception KVStoreRedisTimeout(string type, Exception innerException)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.KVStoreRedisTimeout, innerException);

            exception.Data["Type"] = type;

            return(exception);
        }
コード例 #7
0
        internal static Exception KVStoreRedisConnectionFailed(string type, Exception innerException)
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.RedisConnectionFailed, innerException);

            exception.Data["Type"] = type;

            return(exception);
        }
コード例 #8
0
        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);
        }
コード例 #9
0
        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);
        }
コード例 #10
0
        internal static Exception VersionsKeysNotEqualError()
        {
            KVStoreException exception = new KVStoreException(KVStoreErrorCodes.VersionsKeysNotEqualError);

            return(exception);
        }