wasDAVClient

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 6  →  ?path2? @ 7
/wasDAVClient/Helpers/wasDAVConflictException.cs
@@ -3,52 +3,52 @@
// Please see: http://www.gnu.org/licenses/gpl.html for legal details, //
// rights of fair usage, the disclaimer and warranty conditions. //
///////////////////////////////////////////////////////////////////////////
// Originally based on: WebDAV .NET client by Sergey Kazantsev
 
using System;
using System.Runtime.Serialization;
 
namespace wasDAVClient.Helpers
{
public class wasDAVConflictException : wasDAVException
{
public wasDAVConflictException()
{
}
 
public wasDAVConflictException(string message)
: base(message)
{
}
 
public wasDAVConflictException(string message, int hr)
: base(message, hr)
{
}
 
public wasDAVConflictException(string message, Exception innerException)
: base(message, innerException)
{
}
 
public wasDAVConflictException(int httpCode, string message, Exception innerException)
: base(httpCode, message, innerException)
{
}
 
public wasDAVConflictException(int httpCode, string message)
: base(httpCode, message)
{
}
 
public wasDAVConflictException(int httpCode, string message, int hr)
: base(httpCode, message, hr)
{
}
 
protected wasDAVConflictException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
// Originally based on: WebDAV .NET client by Sergey Kazantsev
 
using System;
using System.Runtime.Serialization;
 
namespace wasDAVClient.Helpers
{
public class wasDAVConflictException : wasDAVException
{
public wasDAVConflictException()
{
}
 
public wasDAVConflictException(string message)
: base(message)
{
}
 
public wasDAVConflictException(string message, int hr)
: base(message, hr)
{
}
 
public wasDAVConflictException(string message, Exception innerException)
: base(message, innerException)
{
}
 
public wasDAVConflictException(int httpCode, string message, Exception innerException)
: base(httpCode, message, innerException)
{
}
 
public wasDAVConflictException(int httpCode, string message)
: base(httpCode, message)
{
}
 
public wasDAVConflictException(int httpCode, string message, int hr)
: base(httpCode, message, hr)
{
}
 
protected wasDAVConflictException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
/wasDAVClient/Helpers/wasDAVException.cs
@@ -3,68 +3,68 @@
// Please see: http://www.gnu.org/licenses/gpl.html for legal details, //
// rights of fair usage, the disclaimer and warranty conditions. //
///////////////////////////////////////////////////////////////////////////
// Originally based on: WebDAV .NET client by Sergey Kazantsev
 
using System;
using System.Runtime.Serialization;
using System.Text;
using System.Web;
 
namespace wasDAVClient.Helpers
{
public class wasDAVException : HttpException
{
public wasDAVException()
{
}
 
public wasDAVException(string message)
: base(message)
{
}
 
public wasDAVException(string message, int hr)
: base(message, hr)
{
}
 
public wasDAVException(string message, Exception innerException)
: base(message, innerException)
{
}
 
public wasDAVException(int httpCode, string message, Exception innerException)
: base(httpCode, message, innerException)
{
}
 
public wasDAVException(int httpCode, string message)
: base(httpCode, message)
{
}
 
public wasDAVException(int httpCode, string message, int hr)
: base(httpCode, message, hr)
{
}
 
protected wasDAVException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
 
public override string ToString()
{
var sb = new StringBuilder();
sb.Append($"HttpStatusCode: {GetHttpCode()}");
sb.Append(Environment.NewLine);
sb.Append($"ErrorCode: {ErrorCode}");
sb.Append(Environment.NewLine);
sb.Append($"Message: {Message}");
sb.Append(Environment.NewLine);
sb.Append(base.ToString());
 
return sb.ToString();
}
}
// Originally based on: WebDAV .NET client by Sergey Kazantsev
 
using System;
using System.Runtime.Serialization;
using System.Text;
using System.Web;
 
namespace wasDAVClient.Helpers
{
public class wasDAVException : HttpException
{
public wasDAVException()
{
}
 
public wasDAVException(string message)
: base(message)
{
}
 
public wasDAVException(string message, int hr)
: base(message, hr)
{
}
 
public wasDAVException(string message, Exception innerException)
: base(message, innerException)
{
}
 
public wasDAVException(int httpCode, string message, Exception innerException)
: base(httpCode, message, innerException)
{
}
 
public wasDAVException(int httpCode, string message)
: base(httpCode, message)
{
}
 
public wasDAVException(int httpCode, string message, int hr)
: base(httpCode, message, hr)
{
}
 
protected wasDAVException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
 
public override string ToString()
{
var sb = new StringBuilder();
sb.Append($"HttpStatusCode: {GetHttpCode()}");
sb.Append(Environment.NewLine);
sb.Append($"ErrorCode: {ErrorCode}");
sb.Append(Environment.NewLine);
sb.Append($"Message: {Message}");
sb.Append(Environment.NewLine);
sb.Append(base.ToString());
 
return sb.ToString();
}
}
}