wasDAVClient – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System;
2 using System.Runtime.Serialization;
3 using System.Web;
4  
5 namespace wasDAVClient.Helpers
6 {
7 public class wasDAVException : HttpException
8 {
9 public wasDAVException()
10 {
11 }
12  
13 public wasDAVException(string message)
14 : base(message)
15 {}
16  
17 public wasDAVException(string message, int hr)
18 : base(message, hr)
19 {}
20  
21 public wasDAVException(string message, Exception innerException)
22 : base(message, innerException)
23 {}
24  
25 public wasDAVException(int httpCode, string message, Exception innerException)
26 : base(httpCode, message, innerException)
27 {}
28  
29 public wasDAVException(int httpCode, string message)
30 : base(httpCode, message)
31 {}
32  
33 public wasDAVException(int httpCode, string message, int hr)
34 : base(httpCode, message, hr)
35 {}
36  
37 protected wasDAVException(SerializationInfo info, StreamingContext context)
38 : base(info, context)
39 {}
40  
41 public override string ToString()
42 {
43 var s = string.Format("HttpStatusCode: {0}", base.GetHttpCode());
44 s += Environment.NewLine + string.Format("ErrorCode: {0}", ErrorCode);
45 s += Environment.NewLine + string.Format("Message: {0}", Message);
46 s += Environment.NewLine + base.ToString();
47  
48 return s;
49 }
50 }
51 }