What is the purpose of writing custom exception classes when mostly what it does is same. For eg, NullPointerException:
class NullPointerException extends Ru
I can think of several reasons:
catch clauses, and only catch the exceptions they care about and know what to do with.