summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/InvalidModStateException.cs
blob: b53a9886b99bafc4a0c592c8e882399ca534b28e (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) { }
    }
}