create custom exception class then catch it

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to create a custom exception for trying to cast a string to an
integer., then catch it. I can create the situation in the situation that
causes the exception but I am getting tripped up trying to write the class
then catch it. Any help would be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top