protected function GenerateResponse() { try { $this->response = InventarioController::CompraDeCargamentoTerminar(); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }