59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
// Decompiled with JetBrains decompiler
|
|
// Type: Rei.Fs.InvalidServerResponseException
|
|
// Assembly: Rei.Fs, Version=1.13.2.8796, Culture=neutral, PublicKeyToken=null
|
|
// MVID: D8B08A8B-697C-4439-9CFF-1BE4EE46F7B0
|
|
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\Rei.Fs.dll
|
|
|
|
using System;
|
|
|
|
namespace Rei.Fs
|
|
{
|
|
public class InvalidServerResponseException : ApplicationException
|
|
{
|
|
private string pBody;
|
|
|
|
public InvalidServerResponseException()
|
|
: this("Invalid server response", string.Empty, (Exception) null)
|
|
{
|
|
}
|
|
|
|
public InvalidServerResponseException(string message)
|
|
: this(message, string.Empty, (Exception) null)
|
|
{
|
|
}
|
|
|
|
public InvalidServerResponseException(string message, Exception innerException)
|
|
: this(message, (string) null, innerException)
|
|
{
|
|
}
|
|
|
|
public InvalidServerResponseException(string message, string body)
|
|
: this(message, body, (Exception) null)
|
|
{
|
|
}
|
|
|
|
public InvalidServerResponseException(string message, string body, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
if (body == null)
|
|
body = string.Empty;
|
|
this.pBody = body;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
if (this.pBody.Length == 0)
|
|
return base.ToString();
|
|
return base.ToString() + "\r\nHttp Message Body:" + this.Body;
|
|
}
|
|
|
|
public string Body
|
|
{
|
|
get
|
|
{
|
|
return this.pBody;
|
|
}
|
|
}
|
|
}
|
|
}
|