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

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort