It's a very vague question, but honestly the error could occur anywhere we want, just simply use throw or do division by zero in one of the cases etc.
Hope this helps.
9.4m questions
12.2m answers