summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/IncompatibleInstructionException.cs
blob: 29406f2a77221e2f544320d676591ffb9dff0a7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#nullable disable

using System;

namespace StardewModdingAPI.Framework.ModLoading
{
    /// <summary>An exception raised when an incompatible instruction is found while loading a mod assembly.</summary>
    internal class IncompatibleInstructionException : Exception
    {
        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        public IncompatibleInstructionException()
            : base("Found incompatible CIL instructions.") { }

        /// <summary>Construct an instance.</summary>
        /// <param name="message">A message which describes the error.</param>
        public IncompatibleInstructionException(string message)
            : base(message) { }
    }
}