How to create custom exceptions?

Q

How to create custom exceptions?

✍: Guest

A

Your class should extend class Exception, or some more specific type thereof.

2013-05-29, 2049👍, 0💬