Error Handling in Async Code
What error handling pattern is demonstrated in this code?
try {
await asyncOperation();
} catch (error) {
if (error instanceof NetworkError) {
// Handle network error
} else if (error instanceof ValidationError) {
// Handle validation error
} else {
throw error; // Re-throw unknown errors
}
}