Showing posts with label Custom Exceptions in Java. Show all posts
Showing posts with label Custom Exceptions in Java. Show all posts

Creating Your own Exceptions in Java

  • 0
     An exception is generally a run time error that leads to unwanted instant termination of the program. An exception must be handled, failing to do so leads to transfer of control of execution to Java's default exception handler. In this article, I would try to develop an exception which is generated if you use a special name "HERR".