WinGetDownloadException.cs (1719B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="WinGetDownloadException.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.WinGetUtil.Exceptions 8 { 9 using System; 10 11 /// <summary> 12 /// Exception for download operations. 13 /// </summary> 14 public class WinGetDownloadException : Exception 15 { 16 /// <summary> 17 /// Initializes a new instance of the <see cref="WinGetDownloadException"/> class. 18 /// </summary> 19 public WinGetDownloadException() 20 { 21 } 22 23 /// <summary> 24 /// Initializes a new instance of the <see cref="WinGetDownloadException"/> class. 25 /// </summary> 26 /// <param name="message">Message.</param> 27 public WinGetDownloadException(string message) 28 : base(message) 29 { 30 } 31 32 /// <summary> 33 /// Initializes a new instance of the <see cref="WinGetDownloadException"/> class. 34 /// </summary> 35 /// <param name="inner">Inner exception.</param> 36 public WinGetDownloadException(Exception inner) 37 : base(string.Empty, inner) 38 { 39 } 40 41 /// <summary> 42 /// Initializes a new instance of the <see cref="WinGetDownloadException"/> class. 43 /// </summary> 44 /// <param name="message">Message.</param> 45 /// <param name="inner">Inner exception.</param> 46 public WinGetDownloadException(string message, Exception inner) 47 : base(message, inner) 48 { 49 } 50 } 51 }