Skip to content

Commit

Permalink
Full JsonException type name in DateFormatConverter (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProductiveRage committed May 15, 2022
1 parent 86c6cfa commit f782bbb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -7,7 +7,7 @@ internal class DateFormatConverter : System.Text.Json.Serialization.JsonConverte
var dateTime = reader.GetString();
if (dateTime == null)
{
throw new JsonException("Unexpected JsonTokenType.Null");
throw new System.Text.Json.JsonException("Unexpected JsonTokenType.Null");
}

return System.DateTime.Parse(dateTime);
Expand Down

0 comments on commit f782bbb

Please sign in to comment.