03.01.2015 Views

Complete set: Intro to C - Bill Buchanan

Complete set: Intro to C - Bill Buchanan

Complete set: Intro to C - Bill Buchanan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

user enters an illegal filename (such as ʺ6:abcʺ) we want the exception <strong>to</strong> go<br />

uncaught – in the debug environment the debugger starts.<br />

i) Identify the exception we want <strong>to</strong> catch (you can <strong>set</strong> a breakpoint and<br />

use the local window for this).<br />

ii) Ensure the catch is specific <strong>to</strong> this exception only.<br />

iii) Check your program completes successfully when given a good file<br />

name.<br />

iv) Check your program gives a fatal warning when given a file that does<br />

not exist.<br />

v) Check that your program generates an unhandled exception when given<br />

an illegal file name.<br />

<strong>Intro</strong>duction <strong>to</strong> .NET<br />

Agilent .NET Course: Module 5, page<br />

13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!