How about something like this 
try
{
  //main code 
   try
      {
        //child code
      }
      catch(Exception ex)
      {
          //display error message from child code
       }
}
catch(Exception ex)
{
          //display error message from main code
}