当前位置: 首页>>代码示例>>PHP>>正文


PHP TApplicationException::read方法代码示例

本文整理汇总了PHP中TApplicationException::read方法的典型用法代码示例。如果您正苦于以下问题:PHP TApplicationException::read方法的具体用法?PHP TApplicationException::read怎么用?PHP TApplicationException::read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TApplicationException的用法示例。


在下文中一共展示了TApplicationException::read方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: recv_Log

 public function recv_Log()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'scribe_Log_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new scribe_Log_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new Exception("Log failed: unknown result");
 }
开发者ID:utcuong3010,项目名称:vng,代码行数:25,代码来源:scribe.php

示例2: recv_getStr

 public function recv_getStr()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\TestService_getStr_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \TestService_getStr_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new \Exception("getStr failed: unknown result");
 }
开发者ID:melanc,项目名称:devel,代码行数:25,代码来源:TestService.php

示例3: recv_lm

 public function recv_lm()
 {
     $rseqid = 0;
     $fname = null;
     $mtype = 0;
     $this->input_->readMessageBegin($fname, $mtype, $rseqid);
     if ($mtype == TMessageType::EXCEPTION) {
         $x = new TApplicationException();
         $x->read($this->input_);
         $this->input_->readMessageEnd();
         throw $x;
     }
     $result = new rpyd_lm_result();
     $result->read($this->input_);
     $this->input_->readMessageEnd();
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ouch !== null) {
         throw $result->ouch;
     }
     throw new Exception("lm failed: unknown result");
 }
开发者ID:hammer,项目名称:rpyd,代码行数:23,代码来源:rpyd.php

示例4: recv_getNoteStoreUrl

 public function recv_getNoteStoreUrl()
 {
     $bin_accel = $this->input_ instanceof \TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\EDAM\\UserStore\\UserStore_getNoteStoreUrl_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == \TMessageType::EXCEPTION) {
             $x = new \TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \EDAM\UserStore\UserStore_getNoteStoreUrl_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->userException !== null) {
         throw $result->userException;
     }
     if ($result->systemException !== null) {
         throw $result->systemException;
     }
     throw new \Exception("getNoteStoreUrl failed: unknown result");
 }
开发者ID:caesargus,项目名称:evernote-sdk-php,代码行数:31,代码来源:UserStore.php

示例5: recv_drop_table

 public function recv_drop_table()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'Hypertable_ThriftGen_ClientService_drop_table_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new Hypertable_ThriftGen_ClientService_drop_table_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->e !== null) {
         throw $result->e;
     }
     return;
 }
开发者ID:kamoljan,项目名称:hypertable,代码行数:25,代码来源:ClientService.php

示例6: recv_cancel_delegation_token

 public function recv_cancel_delegation_token()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'ThriftHiveMetastore_cancel_delegation_token_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new ThriftHiveMetastore_cancel_delegation_token_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->o1 !== null) {
         throw $result->o1;
     }
     return;
 }
开发者ID:uclaabs,项目名称:absHive,代码行数:25,代码来源:ThriftHiveMetastore.php

示例7: recv_batch_run

 public function recv_batch_run()
 {
     $rseqid = 0;
     $fname = null;
     $mtype = 0;
     $this->input_->readMessageBegin($fname, $mtype, $rseqid);
     if ($mtype == TMessageType::EXCEPTION) {
         $x = new TApplicationException();
         $x->read($this->input_);
         $this->input_->readMessageEnd();
         throw $x;
     }
     $result = new api10_FacebookApi10_batch_run_result();
     $result->read($this->input_);
     $this->input_->readMessageEnd();
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->error_response !== null) {
         throw $result->error_response;
     }
     throw new Exception("batch_run failed: unknown result");
 }
开发者ID:luxurymask,项目名称:platform,代码行数:23,代码来源:api_10.FacebookApi10.client.php

示例8: recv_set_cql_version

 public function recv_set_cql_version()
 {
     $bin_accel = $this->input_ instanceof \TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, '\\cassandra\\Cassandra_set_cql_version_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == \TMessageType::EXCEPTION) {
             $x = new \TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new \cassandra\Cassandra_set_cql_version_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->ire !== null) {
         throw $result->ire;
     }
     return;
 }
开发者ID:codewinguagua,项目名称:Cassandra-Cluster-Admin,代码行数:25,代码来源:cassandra.Cassandra.client.php

示例9: recv_li_RemoveAll

 public function recv_li_RemoveAll()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'wthugelistint_THugeListInt_DataService_li_RemoveAll_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new wthugelistint_THugeListInt_DataService_li_RemoveAll_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     if ($result->ex1 !== null) {
         throw $result->ex1;
     }
     if ($result->ex2 !== null) {
         throw $result->ex2;
     }
     throw new Exception("li_RemoveAll failed: unknown result");
 }
开发者ID:utcuong3010,项目名称:vng,代码行数:31,代码来源:THugeListInt_DataService.php

示例10: recv_removeIdFromWhitelist

 public function recv_removeIdFromWhitelist()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'vng_zingme_payment_thrift_TAppServer_removeIdFromWhitelist_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new vng_zingme_payment_thrift_TAppServer_removeIdFromWhitelist_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
开发者ID:utcuong3010,项目名称:vng,代码行数:22,代码来源:TAppServer.php

示例11: recv_partition_name_to_spec

  public function recv_partition_name_to_spec()
  {
    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, 'metastore_ThriftHiveMetastore_partition_name_to_spec_result', $this->input_->isStrictRead());
    else
    {
      $rseqid = 0;
      $fname = null;
      $mtype = 0;

      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
      if ($mtype == TMessageType::EXCEPTION) {
        $x = new TApplicationException();
        $x->read($this->input_);
        $this->input_->readMessageEnd();
        throw $x;
      }
      $result = new metastore_ThriftHiveMetastore_partition_name_to_spec_result();
      $result->read($this->input_);
      $this->input_->readMessageEnd();
    }
    if ($result->success !== null) {
      return $result->success;
    }
    if ($result->o1 !== null) {
      throw $result->o1;
    }
    throw new Exception("partition_name_to_spec failed: unknown result");
  }
开发者ID:recruitcojp,项目名称:WebHive,代码行数:29,代码来源:ThriftHiveMetastore.php

示例12: recv_ping

 public function recv_ping()
 {
     $bin_accel = $this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'OpenZWave_RemoteManager_ping_result', $this->input_->isStrictRead());
     } else {
         $rseqid = 0;
         $fname = null;
         $mtype = 0;
         $this->input_->readMessageBegin($fname, $mtype, $rseqid);
         if ($mtype == TMessageType::EXCEPTION) {
             $x = new TApplicationException();
             $x->read($this->input_);
             $this->input_->readMessageEnd();
             throw $x;
         }
         $result = new OpenZWave_RemoteManager_ping_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     return;
 }
开发者ID:chadparry,项目名称:Thrift4OZW,代码行数:22,代码来源:RemoteManager.php


注:本文中的TApplicationException::read方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。