代码之家  ›  专栏  ›  技术社区  ›  Kieran Andrews

避免Zends错误消息

  •  0
  • Kieran Andrews  · 技术社区  · 16 年前

    1 回复  |  直到 16 年前
        1
  •  2
  •   chelmertz user1604064    16 年前

    如果您指的是异常,请使用以下内容:

    try {
      $acl = new Zend_Acl();
      // some other Zend_* stuff
    } catch(Zend_Exception $e) {
      // handle the error (the thrown exception) your way
    }