mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 05:05:05 +00:00
Better exception
This commit is contained in:
@@ -77,7 +77,7 @@ namespace ICD.Common.Utils.Xml
|
|||||||
if (GetAttributes(xml).TryFirst(a => a.Name == name, out output))
|
if (GetAttributes(xml).TryFirst(a => a.Name == name, out output))
|
||||||
return 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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user