Skip to content

Commit 6a68bfe

Browse files
committed
Improving error handing when reading json config
Without mandatory fields set, the previous code would hit many exceptions in the happy load case. Thus, instead of depending on exceptions to detect the existence of keys in the parsed json, this change optionals to check to see whether a key exists. This should improve performance (no stack unrolling for the exception) as well as allows some try/catch blocks to be removed (simpler code.)
1 parent 0593bea commit 6a68bfe

File tree

1 file changed

+251
-162
lines changed

1 file changed

+251
-162
lines changed

0 commit comments

Comments
 (0)