From 250c8a354fc73f9a9c62f36e3f3ce37e094316f7 Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Tue, 23 Jan 2018 18:47:31 -0500 Subject: [PATCH] Better exception --- ICD.Common.Utils/Xml/XmlUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICD.Common.Utils/Xml/XmlUtils.cs b/ICD.Common.Utils/Xml/XmlUtils.cs index 0b04a9c..1d5b287 100644 --- a/ICD.Common.Utils/Xml/XmlUtils.cs +++ b/ICD.Common.Utils/Xml/XmlUtils.cs @@ -77,7 +77,7 @@ namespace ICD.Common.Utils.Xml if (GetAttributes(xml).TryFirst(a => a.Name == name, out output)) return output; - throw new KeyNotFoundException(string.Format("No attribute with name {0}", name)); + throw new FormatException(string.Format("No attribute with name {0}", name)); } ///