tag:blogger.com,1999:blog-8712770457197348465.post4679324793960953767..comments2024-03-28T02:47:19.159-07:00Comments on Javarevisited: How to create Custom Exception in Java - Tutorial Examplejavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-8712770457197348465.post-60840110946876218042014-07-24T09:26:21.402-07:002014-07-24T09:26:21.402-07:00Hi Javin,
Nice article , just want to add a point...Hi Javin,<br /><br />Nice article , just want to add a point to it..<br />All you need to do is create a new class and have it extend Exception.<br />If you want an Exception that is unchecked, you need to extend RuntimeException.<br /><br />Note: A checked Exception is one that requires you to either surround the Exception in a try/catch block or have a 'throws' clause on the method SARAL SAXENAhttps://www.blogger.com/profile/01084233786047386880noreply@blogger.com