protected function GenerateResponse() { try { $this->response = SucursalesController::EliminarCaja(isset($_GET['id_caja']) ? $_GET['id_caja'] : null); } catch (Exception $e) { //Logger::error($e); throw new ApiException($this->error_dispatcher->invalidDatabaseOperation($e->getMessage())); } }