晕,搞这么复杂干吗,
try
catch
throw()就可以了

解决方案 »

  1.   

    要看抛出异常Throw (New ApplicationException(errorText))后, 你在哪处理它?
      

  2.   

    : seesea125(雨天)  你说的这种情况 能够让管理员知道那一行发现错误乐吗?难道等到操作员高速你有问题 ,然后你在一条一条的调试!就算这样,如果你调试的逻辑和出错的逻辑对簿上还是发现不了问题!panyee(快乐王子) 执行Throw (New ApplicationException(errorText)) 就有问题了,执行不下去,是不是那里需要设置一下帮助中的例子 运行也出错
    Throw New System.Exception("An exception has occurred.")
      

  3.   

    throw是抛出异常的语句!
    表示你的操作不符合它的要求。
    你只要通过
    try-catch语句就能够捕捉到异常
      

  4.   

    try {
        // Code that throws exceptions
    } catch(OverflowException e) {
        // Catch a specific exception
    } catch(Exception e) {
        // Catch the generic exceptions
    } finally {
        // Execute some cleanup code
    }
      

  5.   

    哇,看到panyee了,再一看,居然是8月份的帖子,晕...