Skip to content

Commit 9f498b9

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 91be51d commit 9f498b9

File tree

1 file changed

+264
-200
lines changed

1 file changed

+264
-200
lines changed

0 commit comments

Comments
 (0)