6using System.Runtime.Serialization;
23 if (_minVersion ==
null)
25 return "This feature is not supported in the installed WinGet version.";
28 return $
"This feature is not supported in the installed WinGet version. WinGet {_minVersion} or higher is needed to use this feature.";
33 private readonly Version? _minVersion;
41 _minVersion = minVersion;
51 _minVersion = minVersion;
Exception that gets thrown if a winget feature is not supportet in the installed winget version.
override string Message
Gets a message that describes the current exception.
WinGetFeatureNotSupportedException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the WGetNET.Exceptions.WinGetFeatureNotSupportedException class with se...
WinGetFeatureNotSupportedException(Version minVersion, Exception innerException)
Initializes a new instance of the WGetNET.Exceptions.WinGetFeatureNotSupportedException class.
WinGetFeatureNotSupportedException(Version minVersion)
Initializes a new instance of the WGetNET.Exceptions.WinGetFeatureNotSupportedException class.