Inheritance: RepositoryException
Exemplo n.º 1
0
        internal void DeleteNode(int nodeId)
        {
            DataOperationResult result = DeleteNodeTree(nodeId);

            if (result == DataOperationResult.Successful)
            {
                return;
            }
            DataOperationException exc = new DataOperationException(result);

            exc.Data.Add("NodeId", nodeId);
            throw exc;
        }
Exemplo n.º 2
0
        internal void DeleteNodePsychical(int nodeId, long timestamp)
        {
            DataOperationResult result = DeleteNodeTreePsychical(nodeId, timestamp);

            if (result == DataOperationResult.Successful)
            {
                return;
            }
            DataOperationException exc = new DataOperationException(result);

            exc.Data.Add("NodeId", nodeId);
            throw exc;
        }
Exemplo n.º 3
0
        /////////////// Operations

        internal void MoveNode(int sourceNodeId, int targetNodeId, long sourceTimestamp, long targetTimestamp)
        {
            DataOperationResult result = MoveNodeTree(sourceNodeId, targetNodeId, sourceTimestamp, targetTimestamp);

            if (result == DataOperationResult.Successful)
            {
                return;
            }
            DataOperationException exc = new DataOperationException(result);

            exc.Data.Add("SourceNodeId", sourceNodeId);
            exc.Data.Add("TargetNodeId", targetNodeId);
            throw exc;
        }