Closed jthomperoo closed 6 months ago
Resolves #27.
Switches out Enum.Parse for Enum.TryParse and throws an exception if the enum parsing fails rather than a System.ArgumentException.
Enum.Parse
Enum.TryParse
System.ArgumentException
Catches the InvalidOperationException and re-throws it as a ParserException for consistency with the other exceptions.
InvalidOperationException
ParserException
Resolves #27.
Switches out
Enum.Parse
forEnum.TryParse
and throws an exception if the enum parsing fails rather than aSystem.ArgumentException
.Catches the
InvalidOperationException
and re-throws it as aParserException
for consistency with the other exceptions.