myCar. Accelerate(10);
U N D E R S TA N D I N G S T R U C T U R E D E X C E P T I O N H A N D L I N G
}
catch(Exception e)
{
Console.WriteLine("\n*** Error! ***");
Console.WriteLine("Method: {0}", e.TargetSite);
Console.WriteLine("Message: {0}", e.Message);
Console.WriteLine("Source: {0}", e.Source);
}
Do'stlaringiz bilan baham: