Använda strukturerad undantagshantering

Följande exempel visar hur du använder strukturerad undantagshantering i koden: