Exception Handling - potatoscript/csharp GitHub Wiki

try
{
   // code block
}
catch(Exception e)
{
   Console.WriteLine(e.Message);
   Console.WriteLine(e.GetType().ToString());
}
finally
{
  // the code within the finally block is always run.
}