NotFoundException Class

IT Hit WebDAV for .NET

The item doesn't exist on the server.

For a list of all members of this type, see NotFoundException Members.

System.Object
   System.Exception
      ITHit.WebDAV.Client.Exceptions.WebDavException
         ITHit.WebDAV.Client.Exceptions.WebDavHttpException
            ITHit.WebDAV.Client.Exceptions.NotFoundException

[Visual Basic]
Public Class NotFoundException
    Inherits WebDavHttpException
[C#]
public class NotFoundException : WebDavHttpException

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

Thrown when server responded with 404 (Not Found) http response. The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

Example

 string license = "<?xml version='1.0' encoding='utf...
 WebDavSession session = new WebDavSession(license);
 session.Credentials = new NetworkCredential("User1", "pwd");

 IFolder folder = null;
 try
 {
     folder = session.OpenFolder(new Uri("http://server:8080/Products"));
 }
 catch(UnauthorizedException)
 {
     Console.WriteLine("Incorrect user name or password.");
 }
 catch(NotFoundException)
 {
     Console.WriteLine("Folder not found.");
 }

 if(folder!=null)
 {
     Console.WriteLine(folder.LastModified.ToString());
 }
 

Requirements

Namespace: ITHit.WebDAV.Client.Exceptions

Assembly: ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll)

See Also

NotFoundException Members | ITHit.WebDAV.Client.Exceptions Namespace