/// <summary> /// Initializes a new instance of the <see cref="DependencyCheckStatus" /> class. /// </summary> /// <param name="checkStatus">The dependency check status.</param> /// <param name="version">The version.</param> /// <param name="message">The message.</param> /// <param name="innerException">The inner exception.</param> public DependencyCheckStatus(NAMEStatusLevel checkStatus, DependencyVersion version = null, string message = "", Exception innerException = null) { #pragma warning disable CS0618 // Maintain backwards compatibility this.CheckPassed = checkStatus == NAMEStatusLevel.Ok; #pragma warning restore CS0618 // Type or member is obsolete this.CheckStatus = checkStatus; this.Version = version; this.Message = message; this.InnerException = innerException; }
/// <summary> /// Initializes a new instance of the <see cref="NAMEException" /> class. /// </summary> /// <param name="message">The message that describes the error.</param> /// <param name="inner">The inner exception.</param> /// <param name="statusLevel">The status level of the operation that originated this exception.</param> public NAMEException(string message, Exception inner, NAMEStatusLevel statusLevel) : base(message, inner) { this.StatusLevel = statusLevel; }