Chained Exceptions were introduced in Java with JDK 1.4. In Chained exceptions, we can associate an exception with some other exception so that it can be inferred that occurrence of one exception is due to associated exception in reality.
Showing posts with label Exception in Java. Show all posts
Showing posts with label Exception in Java. Show all posts
Creating Your own Exceptions in Java
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".
Subscribe to:
Posts (Atom)