Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exceptions

Status
Not open for further replies.

tommyboyau

Programmer
Feb 7, 2005
47
0
0
AU
Hi everyone,
I need some clarification with throwing exceptions. I'm interested in two things:
x Throwing exceptions which completly stop the program running
x Throwing exceptions which but the program keeps running.

eg: In the first instance the program might not recieve the correct amount of command line arguments and have to stop all together.

In the second instance the program might check that an integer is a certain value. If its not that value then it sets it to say 1 and continues operation.

If someone could provide some examples or some help that would be great.

Thanks,

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top