9. C# - Try/Catch
try
{
try something
}
catch (Exception e)
{
Console.WriteLine(e.Message);
// or do something to mark the error/exception (many type of exceptions available)
// https://msdn.microsoft.com/en-us/library/system.systemexception.aspx
}
finally
{
Console.WriteLine("Test");
}
Comments
Post a Comment