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"); }
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; }
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"); }
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; }
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; }
/** * @param string error message * @param integer error code (optional) */ public function __construct($errorMessage, $errorCode = null) { $this->setErrorCode($errorCode); parent::__construct($errorMessage); }
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"); }
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; }
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"); }
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; }
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"); }
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"); }
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; }