Writing try..catch and try..catch..finally statements

Write try..catch and try..catch..finally statements using the following formats:

var myErr:Error;
// try..catch
try {
    // statements
} catch (myErr) {
    // statements
}

// try..catch..finally
try {
    // statements
} catch (myErr) {
    // statements
} finally {
    // statements
}