Bhavesh Sangwan wrote:my method which raising an exception
No it isn't, because you've already caught it.
and I want to catch this exception using my own class... method is...
Then don't use
try...catch (at least, not like that). You've commented out the code that actually throws your exception, so if you run it with a divisor of 0, you'll get an ArithmeticException.
Winston