Checked error handling