wasDAVClient – Blame information for rev 3

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  
3 office 13 public wasDAVException(string message)
1 office 14 : base(message)
3 office 15 {
16 }
1 office 17  
3 office 18 public wasDAVException(string message, int hr)
1 office 19 : base(message, hr)
3 office 20 {
21 }
1 office 22  
3 office 23 public wasDAVException(string message, Exception innerException)
1 office 24 : base(message, innerException)
3 office 25 {
26 }
1 office 27  
3 office 28 public wasDAVException(int httpCode, string message, Exception innerException)
1 office 29 : base(httpCode, message, innerException)
3 office 30 {
31 }
1 office 32  
3 office 33 public wasDAVException(int httpCode, string message)
1 office 34 : base(httpCode, message)
3 office 35 {
36 }
1 office 37  
3 office 38 public wasDAVException(int httpCode, string message, int hr)
1 office 39 : base(httpCode, message, hr)
3 office 40 {
41 }
1 office 42  
3 office 43 protected wasDAVException(SerializationInfo info, StreamingContext context)
1 office 44 : base(info, context)
3 office 45 {
46 }
1 office 47  
48 public override string ToString()
49 {
3 office 50 var s = string.Format("HttpStatusCode: {0}", GetHttpCode());
1 office 51 s += Environment.NewLine + string.Format("ErrorCode: {0}", ErrorCode);
52 s += Environment.NewLine + string.Format("Message: {0}", Message);
53 s += Environment.NewLine + base.ToString();
54  
55 return s;
56 }
57 }
58 }