3 ms·
Depends on whether you call the function `parse` or `tryParse`. :) Throw if you expect that the input should never be invalid. Don't throw, and do friendly lo
by kaetemi 5y ago
Depends on whether you call the function `parse` or `tryParse`. :)
Throw if you expect that the input should never be invalid.
Don't throw, and do friendly logging and reporting of your parsing errors, if this is uncontrollable third party input.