diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-16 22:57:52 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-05-16 22:57:52 -0400 |
commit | bf02c54f8bc4499052af8870e080100a4a7f05a3 (patch) | |
tree | 0b1242fa4a2c1f6465f1867b05e09c0161eb3336 /src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs | |
parent | a0e9fa9f3e2aa47c3fa98891f757509947d871d6 (diff) | |
parent | 2d9aefebb0991b2e942241bf509eaa98f63b4963 (diff) | |
download | SMAPI-bf02c54f8bc4499052af8870e080100a4a7f05a3.tar.gz SMAPI-bf02c54f8bc4499052af8870e080100a4a7f05a3.tar.bz2 SMAPI-bf02c54f8bc4499052af8870e080100a4a7f05a3.zip |
Merge branch 'feature/285-mod-dependencies' into develop
# Conflicts:
# src/StardewModdingAPI/Framework/ModRegistry.cs
# src/StardewModdingAPI/Program.cs
Diffstat (limited to 'src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs')
-rw-r--r-- | src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs b/src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs new file mode 100644 index 00000000..ab11272a --- /dev/null +++ b/src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs @@ -0,0 +1,14 @@ +using System; + +namespace StardewModdingAPI.Framework.ModLoading +{ + /// <summary>An exception which indicates that something went seriously wrong while loading mods, and SMAPI should abort outright.</summary> + public class InvalidModStateException : Exception + { + /// <summary>Construct an instance.</summary> + /// <param name="message">The error message.</param> + /// <param name="ex">The underlying exception, if any.</param> + public InvalidModStateException(string message, Exception ex = null) + : base(message, ex) { } + } +} |