From 569ae2b87b10bcef1088b51a33a3f3d5734d60df Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Thu, 25 May 2017 21:52:15 -0400 Subject: reduce ContentLoadException nesting --- .../Framework/Exceptions/SContentLoadException.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/StardewModdingAPI/Framework/Exceptions/SContentLoadException.cs (limited to 'src/StardewModdingAPI/Framework/Exceptions') diff --git a/src/StardewModdingAPI/Framework/Exceptions/SContentLoadException.cs b/src/StardewModdingAPI/Framework/Exceptions/SContentLoadException.cs new file mode 100644 index 00000000..85d85e3d --- /dev/null +++ b/src/StardewModdingAPI/Framework/Exceptions/SContentLoadException.cs @@ -0,0 +1,18 @@ +using System; +using Microsoft.Xna.Framework.Content; + +namespace StardewModdingAPI.Framework.Exceptions +{ + /// An implementation of used by SMAPI to detect whether it was thrown by SMAPI or the underlying framework. + internal class SContentLoadException : ContentLoadException + { + /********* + ** Public methods + *********/ + /// Construct an instance. + /// The error message. + /// The underlying exception, if any. + public SContentLoadException(string message, Exception ex = null) + : base(message, ex) { } + } +} -- cgit