¿Cuál es el resultado de ejecutar el siguiente código?
try {
string str = "abc";
int num = int.Parse(str);
}
catch (FormatException ex) {
Console.WriteLine("Formato inválido.");
}
catch (Exception ex) {
Console.WriteLine("Ocurrió un error.");
}