summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/DeprecationWarning.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-08 18:20:03 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-08 18:20:03 -0500
commit84b9f4336d5b0c7f269a7bfbb94042360574bbaa (patch)
tree0a4d138f88522ca101bff739c8ade1f62c74fbfe /src/SMAPI/Framework/DeprecationWarning.cs
parent79c616600576acf16f70daad68cc60a22cbbbf74 (diff)
parent41f77f51c0203fa36c1e47cf67409244ed3c2ff2 (diff)
downloadSMAPI-84b9f4336d5b0c7f269a7bfbb94042360574bbaa.tar.gz
SMAPI-84b9f4336d5b0c7f269a7bfbb94042360574bbaa.tar.bz2
SMAPI-84b9f4336d5b0c7f269a7bfbb94042360574bbaa.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/DeprecationWarning.cs')
-rw-r--r--src/SMAPI/Framework/DeprecationWarning.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/DeprecationWarning.cs b/src/SMAPI/Framework/DeprecationWarning.cs
index 25415012..5201b06c 100644
--- a/src/SMAPI/Framework/DeprecationWarning.cs
+++ b/src/SMAPI/Framework/DeprecationWarning.cs
@@ -18,6 +18,9 @@ namespace StardewModdingAPI.Framework
/// <summary>The deprecation level for the affected code.</summary>
public DeprecationLevel Level { get; }
+ /// <summary>The stack trace when the deprecation warning was raised.</summary>
+ public string StackTrace { get; }
+
/*********
** Public methods
@@ -27,12 +30,14 @@ namespace StardewModdingAPI.Framework
/// <param name="nounPhrase">A noun phrase describing what is deprecated.</param>
/// <param name="version">The SMAPI version which deprecated it.</param>
/// <param name="level">The deprecation level for the affected code.</param>
- public DeprecationWarning(string modName, string nounPhrase, string version, DeprecationLevel level)
+ /// <param name="stackTrace">The stack trace when the deprecation warning was raised.</param>
+ public DeprecationWarning(string modName, string nounPhrase, string version, DeprecationLevel level, string stackTrace)
{
this.ModName = modName;
this.NounPhrase = nounPhrase;
this.Version = version;
this.Level = level;
+ this.StackTrace = stackTrace;
}
}
}