How to create custom exceptions?
Ask by Sumit Kesarwani
Updated 22 Sep 2020
Your class should extend class Exception, or some more specific type thereof.