"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Duplicati/Library/Backend/Dropbox/DropboxHelper.cs" between
duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25.tar.gz and duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11.tar.gz

About: Duplicati is a backup client that securely stores encrypted, incremental, compressed backups on local devices, cloud storage services and remote file servers (for Windows, macOS and Linux). A remark: This officially "pre-release" seems to run stable.

DropboxHelper.cs  (duplicati-2.0.5.104-2.0.5.104_canary_2020-03-25):DropboxHelper.cs  (duplicati-2.0.5.106-2.0.5.106_canary_2020-05-11)
skipping to change at line 244 skipping to change at line 244
throw new Duplicati.Library.Interface.FileMissingExc eption(json); throw new Duplicati.Library.Interface.FileMissingExc eption(json);
else else
throw new Duplicati.Library.Interface.FolderMissingE xception(json); throw new Duplicati.Library.Interface.FolderMissingE xception(json);
} }
if (httpResp.StatusCode == HttpStatusCode.Unauthorized) if (httpResp.StatusCode == HttpStatusCode.Unauthorized)
ThrowAuthException(json, exception); ThrowAuthException(json, exception);
if ((int)httpResp.StatusCode == 429 || (int)httpResp.StatusC ode == 507) if ((int)httpResp.StatusCode == 429 || (int)httpResp.StatusC ode == 507)
ThrowOverQuotaError(); ThrowOverQuotaError();
} }
throw new DropboxException() { errorJSON = JObject.Parse(json) } JObject errJson = null;
; try
{
errJson = JObject.Parse(json);
}
catch
{
}
if (errJson != null)
throw new DropboxException() { errorJSON = errJson };
else
throw new InvalidDataException($"Non-json response: {json}")
;
} }
} }
} }
public class DropboxException : Exception public class DropboxException : Exception
{ {
public JObject errorJSON { get; set; } public JObject errorJSON { get; set; }
} }
public class PathArg public class PathArg
 End of changes. 1 change blocks. 
2 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)