Handling Errors with try-catch-finally

What error handling strategy is implemented here?
try {
  const data = JSON.parse(input);
  validateData(data);
} catch (error) {
  if (error.name === 'SyntaxError') {
    console.error('Invalid JSON format');
  } else if (error.name === 'ValidationError') {
    console.error('Invalid data structure');
  } else {
    console.error('Unknown error:', error);
  }
}
Next Question (9/20)