summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/ModLoading/InvalidModStateException.cs
blob: 075e237aa7080d41d31ade2e24adcc5eea3b64aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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>
    internal 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) { }
    }
}