WGet.NET 4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
WinGetNotInstalledException.cs
1//--------------------------------------------------//
2// Created by basicx-StrgV //
3// https://github.com/basicx-StrgV/ //
4//--------------------------------------------------//
5using System;
6using System.Runtime.Serialization;
7
8namespace WGetNET.Exceptions
9{
13 [Serializable]
14 public class WinGetNotInstalledException : Exception
15 {
19 public override string Message { get; } = "WinGet is not installed on this system or could not be found.";
20
25 {
26 }
27
32 public WinGetNotInstalledException(string message) : base(message)
33 {
34 Message = message;
35 }
36
42 public WinGetNotInstalledException(string message, Exception innerException) : base(message, innerException)
43 {
44 Message = message;
45 }
46
58 protected WinGetNotInstalledException(SerializationInfo info, StreamingContext context) : base(info, context)
59 {
60 }
61 }
62}
Exception that gets thrown if winget is not installed.
WinGetNotInstalledException(string message)
Initializes a new instance of the WGetNET.Exceptions.WinGetNotInstalledException class.
WinGetNotInstalledException(string message, Exception innerException)
Initializes a new instance of the WGetNET.Exceptions.WinGetNotInstalledException class.
WinGetNotInstalledException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the WGetNET.Exceptions.WinGetNotInstalledException class with serialize...
WinGetNotInstalledException()
Initializes a new instance of the WGetNET.Exceptions.WinGetNotInstalledException class.
override string Message
Gets a message that describes the current exception.