-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added further implementations for #6 + breaking change + fixed bug wi…
…th DirectoryExists * BREAKING CHANGE: File/DirInfo.Path as string array (instead of string list) to force read-only access * IOClient.RootDirectory.DirectoryExists: if path argument starts with directory separator, route checks to root directory
- Loading branch information
1 parent
30700e3
commit f20cba3
Showing
5 changed files
with
394 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
CenterDevice.Rest/Model/Exceptions/FileAlreadyExistsException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace CenterDevice.Model.Exceptions | ||
{ | ||
/// <summary> | ||
/// Thrown when a required file already exists | ||
/// </summary> | ||
public class FileAlreadyExistsException : System.Exception | ||
{ | ||
/// <summary> | ||
/// Thrown when a required file already exists | ||
/// </summary> | ||
/// <param name="remotePath"></param> | ||
public FileAlreadyExistsException(string remotePath) : base("File already existing: " + remotePath) | ||
{ | ||
this.RemotePath = remotePath; | ||
} | ||
|
||
/// <summary> | ||
/// Thrown when a required file already exists | ||
/// </summary> | ||
/// <param name="remotePath"></param> | ||
/// <param name="innerException"></param> | ||
public FileAlreadyExistsException(string remotePath, Exception innerException) : base("File already existing: " + remotePath, innerException) | ||
{ | ||
this.RemotePath = remotePath; | ||
} | ||
|
||
/// <summary> | ||
/// The path of the missing file | ||
/// </summary> | ||
public string RemotePath { get; set; } | ||
} | ||
} |
Oops, something went wrong.