Click here to Skip to main content
16,004,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can I implement my own exception class in java?
Posted

You have to create a class that inherits from (extends) the Exception class.
Here's a few sites that should get you started, otherwise Google[^] has plenty examples.

http://answers.yahoo.com/question/index?qid=20080114060316AAmey0l[^]

http://www.seasite.niu.edu/cs580java/testexception.htm[^]
 
Share this answer
 
There's a pretty good tutorial here[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900