本文整理汇总了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");
}
示例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");
}
示例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");
}
示例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");
}
示例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;
}
示例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;
}
示例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");
}
示例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;
}
示例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");
}
示例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;
}
示例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");
}
示例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;
}