| Author |
own unchecked exception...?
|
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 296
|
|
Dear all
How to create my own unchecked exception in java ?
|
Creativity is nothing but Breaking Rules
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
By extending Exception:
|
[My Blog]
All roads lead to JavaRanch
|
 |
Gamini Sirisena
Ranch Hand
Joined: Aug 05, 2008
Posts: 347
|
|
I think that'll create a checked exception..
Create a class extending RuntimeException.
If you want to convert a checked exception thrown at you to a RuntimeException, you could...
|
 |
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 296
|
|
|
i want to extend RunTime exception right
|
 |
Gamini Sirisena
Ranch Hand
Joined: Aug 05, 2008
Posts: 347
|
|
|
Yep, its the mother of all unchecked exceptions..
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
I think that'll create a checked exception..
Dooh, I had checked exceptions in mind. Sorry.
|
 |
santhosh.R gowda
Ranch Hand
Joined: Apr 06, 2009
Posts: 296
|
|
|
Thanks all
|
 |
 |
|
|
subject: own unchecked exception...?
|
|
|