2010-01-03 22:57:13 +00:00
|
|
|
#region Disclaimer / License
|
2011-05-09 19:52:28 +00:00
|
|
|
// Copyright (C) 2011, Kenneth Skovhede
|
2010-01-03 22:57:13 +00:00
|
|
|
// http://www.hexad.dk, opensource@hexad.dk
|
|
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
|
//
|
|
|
|
|
#endregion
|
|
|
|
|
using System;
|
2009-09-23 16:42:45 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2010-06-19 21:08:21 +00:00
|
|
|
namespace Duplicati.Library.Interface
|
2009-09-23 16:42:45 +00:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An exception indicating that the requested folder is missing
|
|
|
|
|
/// </summary>
|
2011-03-12 10:03:54 +00:00
|
|
|
[Serializable]
|
2009-09-23 16:42:45 +00:00
|
|
|
public class FolderMissingException : Exception
|
|
|
|
|
{
|
|
|
|
|
public FolderMissingException()
|
2010-10-23 11:40:43 +00:00
|
|
|
: base(Strings.Common.FolderMissingError)
|
2009-09-23 16:42:45 +00:00
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public FolderMissingException(string message)
|
|
|
|
|
: base(message)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public FolderMissingException(Exception innerException)
|
|
|
|
|
: base(Strings.Common.FolderMissingError, innerException)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public FolderMissingException(string message, Exception innerException)
|
|
|
|
|
: base(message, innerException)
|
|
|
|
|
{ }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An exception indicating that the requested folder already existed
|
|
|
|
|
/// </summary>
|
2011-03-12 10:03:54 +00:00
|
|
|
[Serializable]
|
2010-10-23 11:40:43 +00:00
|
|
|
public class FolderAreadyExistedException : Exception
|
2009-09-23 16:42:45 +00:00
|
|
|
{
|
2010-10-23 11:40:43 +00:00
|
|
|
public FolderAreadyExistedException()
|
|
|
|
|
: base(Strings.Common.FolderAlreadyExistsError)
|
2009-09-23 16:42:45 +00:00
|
|
|
{ }
|
|
|
|
|
|
2010-10-23 11:40:43 +00:00
|
|
|
public FolderAreadyExistedException(string message)
|
2009-09-23 16:42:45 +00:00
|
|
|
: base(message)
|
|
|
|
|
{ }
|
|
|
|
|
|
2010-10-23 11:40:43 +00:00
|
|
|
public FolderAreadyExistedException(Exception innerException)
|
2009-09-23 16:42:45 +00:00
|
|
|
: base(Strings.Common.FolderAlreadyExistsError, innerException)
|
|
|
|
|
{ }
|
|
|
|
|
|
2010-10-23 11:40:43 +00:00
|
|
|
public FolderAreadyExistedException(string message, Exception innerException)
|
2009-09-23 16:42:45 +00:00
|
|
|
: base(message, innerException)
|
|
|
|
|
{ }
|
|
|
|
|
}
|
2010-09-17 16:20:16 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// An exception indicating that the user has cancelled the action
|
|
|
|
|
/// </summary>
|
2011-03-12 10:03:54 +00:00
|
|
|
[Serializable]
|
2010-09-17 16:20:16 +00:00
|
|
|
public class CancelException : Exception
|
|
|
|
|
{
|
|
|
|
|
public CancelException()
|
|
|
|
|
: base()
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public CancelException(string message)
|
|
|
|
|
: base(message)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public CancelException(Exception innerException)
|
|
|
|
|
: base(Strings.Common.CancelExceptionError, innerException)
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
public CancelException(string message, Exception innerException)
|
|
|
|
|
: base(message, innerException)
|
|
|
|
|
{ }
|
|
|
|
|
}
|
2009-09-23 16:42:45 +00:00
|
|
|
}
|