// Copyright (c) Arlo Godfrey. All Rights Reserved. // Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms. // See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information. using System; namespace StrixMusic.Sdk.AppModels; /// /// Thrown to indicate that an object originating from one version of the Strix Music SDK was provided to a newer version which is not backwards compatible. /// public class IncompatibleSdkVersionException : InvalidOperationException { /// /// Initializes a new instance of the class. /// /// The version of the SDK provided which isn't compatible with the current running version. /// A name or identifier associated with the object which caused the exception to be thrown. public IncompatibleSdkVersionException(Version providedSdkVersion, string hintName) { ProvidedSdkVersion = providedSdkVersion; HintName = hintName; } /// /// The version of the SDK provided which isn't compatible with the current running version. /// public Version ProvidedSdkVersion { get; } /// /// A name or identifier associated with the object which caused the exception to be thrown. /// public string HintName { get; } }