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