Hi
we want to make own exception condition like age not more than 50 years old of any employee.
How to make custom exception in Java ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Jan 24, 2012, 8:25 PM EST
Extension tree
FileNotFound and MyOwn did not know each other.
public void ApplicationExceptionTest() throws Exception { throw new FileNotFoundException(); }is the way to go
http://www.seasite.niu.edu/cs580java/testexception.htm