try
{
  ...;//
}
catch
{
  ...//
  throw;
}
finally
{
}

解决方案 »

  1.   

    try{
    }
    catch(Exception e)
    {
      throw new System.Exception(e.Message);
    }
      

  2.   

    引发的异常是类从 System.Exception 派生的对象,例如:class MyException : System.Exception {}
    throw new MyException();
    通常 throw 语句与 try-catch 或 try-finally 语句一起使用。当引发异常时,程序查找处理此异常的 catch 语句。
      

  3.   

    ?
    在C++里不是也要try{..}catch{..}的吗?
    在C#里可以和C++一样抛出异常啊。
    if (i>10) throw new Exception();
      

  4.   

    try
    {
      ...;//
    }
    catch(Exception ee)
    {
      ...//
      throw ee;
    }
    finally
    {
    }
      

  5.   

    可以啊
    格式是:
    throw 异常对象;
      

  6.   

    try{
    }
    catch(Exception e)
    {
      throw new System.Exception(e.Message);
    }
      

  7.   

    if (true)
        throw new System.NotSupportException("出错啦!");
      

  8.   

    try
    {
      ...;//
    }
    catch(Exception ee)
    {
      ...//
      throw ee;
    }
    finally
    {
    }
    OR
    try
    {
      ...;//
    }
    catch(Exception ee)
    {
      ...//
      MessageBox(ee.Message.ToString());
    }
    finally
    {
    }