public function createErrorResponse(TRpcException $exception) { return $this->encode(array('faultCode' => $exception->getCode(), 'faultString' => $exception->getMessage())); }