public virtual string GetRelativePathTo(INodeAddress name)
        {
            if (!this.RootUri.Equals(name.RootUri))
            {
                throw new ArgumentOutOfRangeException(name.ToString());
            }

            return(GetRelativePathTo(name.AbsolutePath));
        }
示例#2
0
        public NodeNotFoundException(INodeAddress nodeAddress, NodeType nodeType, Exception innerException)
            : base(nodeAddress != null ? "VirtualFileSystem item not found: " + nodeAddress.ToString() : "", innerException)
        {
            NodeType    = nodeType;
            NodeAddress = nodeAddress;

            if (NodeAddress != null)
            {
                Uri = NodeAddress.Uri;
            }
        }
		public NodeNotFoundException(INodeAddress nodeAddress, NodeType nodeType, Exception innerException)
			: base(nodeAddress != null ? "VirtualFileSystem item not found: " + nodeAddress.ToString() : "", innerException)
		{
			NodeType = nodeType;
			NodeAddress = nodeAddress;

			if (NodeAddress != null)
			{
				Uri = NodeAddress.Uri;
			}
		}
 public override string ToString()
 {
     return(address.ToString());
 }
		public virtual string GetRelativePathTo(INodeAddress name)
		{
			if (!this.RootUri.Equals(name.RootUri))
			{
				throw new ArgumentOutOfRangeException(name.ToString());
			}

			return GetRelativePathTo(name.AbsolutePath);
		}