Refactoring: Replace Exception with Test

added by DotNetKicks
1/26/2018 1:24:03 PM

1 Kicks, 242 Views

Exceptions are mechanism to transport information about errors in object-oriented code. But they come with performance hit when not used carefully. Still we find a lot of code when exceptions are not avoided but used as a control mechanism in code flow.