Tuesday, August 18, 2015

When to write your own exceptions

When you need to differentiate between different types of errors.

Exception class only tells you something is wrong but not what.

Allows code to ignore certain types of errors at certain points in code and let other parts handle it.

No comments: