Nice explanation Dipesh.
By setting the default on we cannot catch other error types right?
As an example, I get "No Error, All good !" when the code throws CastError when I try to call findById with a random text or number as the id para.
Any workaround for this?
Nice explanation Dipesh.
By setting the default on we cannot catch other error types right?
As an example, I get "No Error, All good !" when the code throws CastError when I try to call findById with a random text or number as the id para.
Any workaround for this?