diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2017-01-09 12:32:38 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2017-01-09 12:40:09 +0300 |
commit | fc9f1b1dd36fd347904d58161d4556c5f2423f63 (patch) | |
tree | 5650c7c8b6d3a11259d941b230fdb78f1528ff83 /Duplicati/Library/Interface | |
parent | f6645ab14267dcad62f39d1b0b9a5de9e7a01c6d (diff) |
Added description for the `--allow-full-removal` option
Diffstat (limited to 'Duplicati/Library/Interface')
-rw-r--r-- | Duplicati/Library/Interface/CustomExceptions.cs | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/Duplicati/Library/Interface/CustomExceptions.cs b/Duplicati/Library/Interface/CustomExceptions.cs index 360cf7ae9..fcc4dda65 100644 --- a/Duplicati/Library/Interface/CustomExceptions.cs +++ b/Duplicati/Library/Interface/CustomExceptions.cs @@ -25,10 +25,27 @@ using Duplicati.Library.Localization.Short; namespace Duplicati.Library.Interface
{
/// <summary>
+ /// A special exception that gives the user information on how to proceed
+ /// </summary>
+ [Serializable]
+ public class UserInformationException : Exception
+ {
+ public UserInformationException(string message)
+ : base(message)
+ {
+ }
+
+ public UserInformationException(string message, Exception innerException)
+ : base(message, innerException)
+ {
+ }
+ }
+
+ /// <summary>
/// An exception indicating that the requested folder is missing
/// </summary>
[Serializable]
- public class FolderMissingException : Exception
+ public class FolderMissingException : UserInformationException
{
public FolderMissingException()
: base(Strings.Common.FolderMissingError)
@@ -51,7 +68,7 @@ namespace Duplicati.Library.Interface /// An exception indicating that the requested folder is missing
/// </summary>
[Serializable]
- public class FileMissingException : Exception
+ public class FileMissingException : UserInformationException
{
public FileMissingException()
: base(LC.L("The requested file does not exist"))
@@ -74,7 +91,7 @@ namespace Duplicati.Library.Interface /// An exception indicating that the requested folder already existed
/// </summary>
[Serializable]
- public class FolderAreadyExistedException : Exception
+ public class FolderAreadyExistedException : UserInformationException
{
public FolderAreadyExistedException()
: base(Strings.Common.FolderAlreadyExistsError)
@@ -97,10 +114,10 @@ namespace Duplicati.Library.Interface /// An exception indicating that the user has cancelled the action
/// </summary>
[Serializable]
- public class CancelException : Exception
+ public class CancelException : UserInformationException
{
public CancelException()
- : base()
+ : base(Strings.Common.CancelExceptionError)
{ }
public CancelException(string message)
|