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

namespace StardewModdingAPI.Toolkit.Serialization
{
    /// <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) { }
    }
}