• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP TApplicationException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了TApplicationException类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: process

 public function process($input, $output)
 {
     $rseqid = 0;
     $fname = null;
     $mtype = 0;
     $input->readMessageBegin($fname, $mtype, $rseqid);
     $methodname = 'process_' . $fname;
     if (!method_exists($this, $methodname)) {
         $input->skip(TType::STRUCT);
         $input->readMessageEnd();
         $x = new TApplicationException('Function ' . $fname . ' not implemented.', TApplicationException::UNKNOWN_METHOD);
         $output->writeMessageBegin($fname, TMessageType::EXCEPTION, $rseqid);
         $x->write($output);
         $output->writeMessageEnd();
         $output->getTransport()->flush();
         return;
     }
     $this->{$methodname}($rseqid, $input, $output);
     return true;
 }
开发者ID:utcuong3010,项目名称:vng,代码行数:20,代码来源:LogCommentFilterReadServiceExt.php


示例3: 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


示例4: 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


示例5: 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


示例6: 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


示例7: 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


示例8: 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


示例9: 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


示例10: recv_FetchResults

 public function recv_FetchResults()
 {
     $bin_accel = $this->input_ instanceof TBinaryProtocolAccelerated && function_exists('thrift_protocol_read_binary');
     if ($bin_accel) {
         $result = thrift_protocol_read_binary($this->input_, 'TCLIService_FetchResults_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 TCLIService_FetchResults_result();
         $result->read($this->input_);
         $this->input_->readMessageEnd();
     }
     if ($result->success !== null) {
         return $result->success;
     }
     throw new Exception("FetchResults failed: unknown result");
 }
开发者ID:hexuotzo,项目名称:php-thrift2-hiveserver2,代码行数:25,代码来源:TCLIService.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


示例13: __construct

 /**
  * @param string error message
  * @param integer error code (optional)
  */
 public function __construct($errorMessage, $errorCode = null)
 {
     $this->setErrorCode($errorCode);
     parent::__construct($errorMessage);
 }
开发者ID:Nurudeen,项目名称:prado,代码行数:9,代码来源:TRpcClient.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP TBGB2DBTable类代码示例发布时间:2022-05-23
下一篇:
PHP TApplication类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap