summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Toolkit/Serialisation/SParseException.cs
blob: 61a7b305c39bb76db2c06ac279cc211475e3fa75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;

namespace StardewModdingAPI.Toolkit.Serialisation
{
    /// <summary>A format exception which provides a user-facing error message.</summary>
    internal class SParseException : FormatException
    {
        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="message">The error message.</param>
        /// <param name="ex">The underlying exception, if any.</param>
        public SParseException(string message, Exception ex = null)
            : base(message, ex) { }
    }
}