tommyboyau
Programmer
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
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