using System.Text.RegularExpressions;
public static void Main()
var isViewOnlyMode = false;
Console.WriteLine("Casting Bool...");
throw new Exception("Casting bool threw an Exception!");
Console.WriteLine(ex.Message);
Console.WriteLine("Executing GoBackCommand...");
throw new Exception("GoBackCommand threw an Exception!");
Console.WriteLine(ex.Message);