Best Practices for Defining and Categorizing Errors in Code
Hi,
Is there a recommended way to create errors?
Should I generally be defining different error for each functionality or different errors for each unique error and passing different messages?
One error for the same function:
Or split into different errors
Is there a recommended way to create errors?
Should I generally be defining different error for each functionality or different errors for each unique error and passing different messages?
One error for the same function:
Or split into different errors
