summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/InvalidModStateException.cs
blob: 9dca9bc47000de09c89417ff1b5acae78fcb61a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#nullable disable

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) { }
    }
}