try {
            if ("E".equals(returnStatus)) {
                throw new OAException(returnMessage, OAException.ERROR);
            }
        }
        catch (Exception localException2) {

        } finally {
            try {
                if (callablestatement != null)
                    callablestatement.close();
            } catch (Exception localException4) {
            }
        }

 

由于OAException是 Exception的一个子类,在throw new OAException会去先创建异常,然后就往catch里面走了,所以根本不会抛出异常。

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2022-01-23
  • 2022-12-23
  • 2021-11-08
相关资源
相似解决方案