errorCode example

/** * Retrieves the error code, if any, associated with the last operation on * the statement handle. * * @return string error code. * @throws Zend_Db_Statement_Exception */
    public function errorCode()
    {
        try {
            return $this->_stmt->errorCode();
        } catch (PDOException $e) {
            throw new Zend_Db_Statement_Exception($e->getMessage()$e->getCode()$e);
        }
    }

    /** * Retrieves an array of error information, if any, associated with the * last operation on the statement handle. * * @return array * @throws Zend_Db_Statement_Exception */
// ----- Read the options     $i=0;
    while ($i<$p_size) {

      // ----- Check if the option is supported       if (!isset($v_requested_options[$p_options_list[$i]])) {
        // ----- Error log         PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter '".$p_options_list[$i]."' for this method");

        // ----- Return         return PclZip::errorCode();
      }

      // ----- Look for next option       switch ($p_options_list[$i]) {
        // ----- Look for options that request a path value         case PCLZIP_OPT_PATH :
        case PCLZIP_OPT_REMOVE_PATH :
        case PCLZIP_OPT_ADD_PATH :
          // ----- Check the number of parameters           if (($i+1) >= $p_size) {
            // ----- Error log
Home | Imprint | This part of the site doesn't use cookies.