Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sowamazing/a9411dffe608d90be12755654eb6c906 to your computer and use it in GitHub Desktop.
Save sowamazing/a9411dffe608d90be12755654eb6c906 to your computer and use it in GitHub Desktop.
public ActionResult Index()
{
int myNumber1 = 0;
int myNumber2 = 1;
try
{
int result = DivideNumbers(3, 4);
} catch (Exception e)
{
// do something
}
try
{
int result2 = DivideNumbers(myNumber1, myNumber2);
} catch (Exception e)
{
// do something
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment