csharp throw exception

Code Example - csharp throw exception

                
                        try 
{
  //code
} catch (Exception ex){
  throw new Exception(ex.Message);
}