| /vbox/src/VBox/Main/include/ |
| H A D | VirtualBoxErrorInfoImpl.h | 140 static HRESULT setError(HRESULT rc, function in class:VirtualBoxErrorInfo
|
| /vbox/src/VBox/Main/src-all/ |
| H A D | VirtualBoxBase.cpp | 316 * It is possible that setError() is being called by the object 347 HRESULT VirtualBoxBase::setError(HRESULT aResultCode) function in class:VirtualBoxBase 365 HRESULT VirtualBoxBase::setError(HRESULT aResultCode, const char *pcsz, ...) function in class:VirtualBoxBase 387 HRESULT VirtualBoxBase::setError(const com::ErrorInfo &ei) function in class:VirtualBoxBase 483 * It is possible that setError() is being called by the object 506 * Like setError(), but sets the "warning" bit in the call to setErrorInternal(). 526 * Like setError(), but disables the "log" flag in the call to setErrorInternal().
|
| H A D | ExtPackManagerImpl.cpp | 452 return setError(E_FAIL, tr("The preferred locale is a two character string or empty.")); 455 return setError(E_FAIL, tr("The preferred lanuage is a two character string or empty.")); 460 return setError(E_FAIL, tr("The license format can only have the values 'html', 'rtf' and 'txt'.")); 489 hrc = setError(E_FAIL, tr("%s"), m->strWhyUnusable.c_str()); 512 hrc = setError(VBOX_E_IPRT_ERROR, tr("RTVfsFsStrmNext failed: %Rrc"), vrc); 514 hrc = setError(E_UNEXPECTED, tr("'%s' was found in the manifest but not in the tarball"), szName); 548 hrc = setError(VBOX_E_IPRT_ERROR, 553 hrc = setError(VBOX_E_IPRT_ERROR, tr("Failed to read '%s': %Rrc"), szName, vrc); 557 hrc = setError(E_OUTOFMEMORY, tr("Failed to allocate %zu bytes for '%s'"), cbFile, szName); 560 hrc = setError(VBOX_E_IPRT_ERRO 2179 AssertReturn(cArgs < RT_ELEMENTS(apszArgs) - 1, E_UNEXPECTED); pszLastArg = va_arg(va, const char *); if (!pszLastArg) break; LogRel((�, pszLastArg)); apszArgs[cArgs++] = pszLastArg; }; va_end(va); LogRel((�)); apszArgs[cArgs] = NULL; RTPIPE hPipeR; RTHANDLE hStdErrPipe; hStdErrPipe.enmType = RTHANDLETYPE_PIPE; vrc = RTPipeCreate(&hPipeR, &hStdErrPipe.u.hPipe, RTPIPE_C_INHERIT_WRITE); AssertLogRelRCReturn(vrc, E_UNEXPECTED); HRESULT hrc; RTPROCESS hProcess; vrc = RTProcCreateEx(szExecName, apszArgs, RTENV_DEFAULT, 0 , NULL , NULL , &hStdErrPipe, NULL , NULL , &hProcess); if (RT_SUCCESS(vrc)) { vrc = RTPipeClose(hStdErrPipe.u.hPipe); hStdErrPipe.u.hPipe = NIL_RTPIPE; RTPROCSTATUS ProcStatus = { -42, RTPROCEXITREASON_ABEND }; size_t cbStdErrBuf = 0; size_t offStdErrBuf = 0; char *pszStdErrBuf = NULL; do { if (hPipeR != NIL_RTPIPE) { char achBuf[1024]; size_t cbRead; vrc = RTPipeReadBlocking(hPipeR, achBuf, sizeof(achBuf), &cbRead); if (RT_SUCCESS(vrc)) { size_t cbBufReq = offStdErrBuf + cbRead + 1; if ( cbBufReq > cbStdErrBuf && cbBufReq < _256K) { size_t cbNew = RT_ALIGN_Z(cbBufReq, 16); void *pvNew = RTMemRealloc(pszStdErrBuf, cbNew); if (pvNew) { pszStdErrBuf = (char *)pvNew; cbStdErrBuf = cbNew; } } if (cbBufReq <= cbStdErrBuf) { memcpy(&pszStdErrBuf[offStdErrBuf], achBuf, cbRead); offStdErrBuf = offStdErrBuf + cbRead; pszStdErrBuf[offStdErrBuf] = �; } } else { AssertLogRelMsg(vrc == VERR_BROKEN_PIPE, (�, vrc)); RTPipeClose(hPipeR); hPipeR = NIL_RTPIPE; } } if (hProcess != NIL_RTPROCESS) { vrc = RTProcWait(hProcess, hPipeR == NIL_RTPIPE ? RTPROCWAIT_FLAGS_BLOCK : RTPROCWAIT_FLAGS_NOBLOCK, &ProcStatus); if (RT_SUCCESS(vrc)) hProcess = NIL_RTPROCESS; else AssertLogRelMsgStmt(vrc == VERR_PROCESS_RUNNING, (�, vrc), hProcess = NIL_RTPROCESS); } } while ( hPipeR != NIL_RTPIPE || hProcess != NIL_RTPROCESS); LogRel((�, ProcStatus.enmReason, ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �)); if (offStdErrBuf > 0) { RTStrStripR(pszStdErrBuf); offStdErrBuf = strlen(pszStdErrBuf); } char *pszSuccessInd = findSuccessIndicator(pszStdErrBuf, offStdErrBuf); if (pszSuccessInd) { *pszSuccessInd = �; offStdErrBuf = pszSuccessInd - pszStdErrBuf; } else if ( ProcStatus.enmReason == RTPROCEXITREASON_NORMAL && ProcStatus.iStatus == 0) ProcStatus.iStatus = offStdErrBuf ? 667 : 666; if ( ProcStatus.enmReason == RTPROCEXITREASON_NORMAL && ProcStatus.iStatus == 0) hrc = S_OK; else if (ProcStatus.enmReason == RTPROCEXITREASON_NORMAL) { AssertMsg(ProcStatus.iStatus != 0, (�, pszStdErrBuf)); hrc = setError(E_FAIL, tr(�), ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �); } else if (ProcStatus.enmReason == RTPROCEXITREASON_SIGNAL) hrc = setError(E_UNEXPECTED, tr(�), ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �); else if (ProcStatus.enmReason == RTPROCEXITREASON_ABEND) hrc = setError(E_UNEXPECTED, tr(�), offStdErrBuf ? pszStdErrBuf : �); else hrc = setError(E_UNEXPECTED, tr(�), ProcStatus.enmReason, ProcStatus.iStatus, offStdErrBuf ? pszStdErrBuf : �); RTMemFree(pszStdErrBuf); } else hrc = setError(VBOX_E_IPRT_ERROR, tr(�), szExecName, vrc); RTPipeClose(hPipeR); RTPipeClose(hStdErrPipe.u.hPipe); return hrc; } ExtPack *ExtPackManager::i_findExtPack(const char *a_pszName) { size_t cchName = strlen(a_pszName); for (ExtPackList::iterator it = m->llInstalledExtPacks.begin(); it != m->llInstalledExtPacks.end(); it++) argument [all...] |
| /vbox/src/VBox/Frontends/VirtualBox/src/selector/ |
| H A D | UIVMDesktop.cpp | 77 void setError(const QString &strError); 124 void UIVMDesktopPrivate::setError(const QString &strError) function in class:UIVMDesktopPrivate 330 m_pDesktopPrivate->setError(strError);
|
| /vbox/src/VBox/Main/src-server/ |
| H A D | USBProxyService.cpp | 178 return setError(E_INVALIDARG, 1267 HRESULT USBProxyService::setError(HRESULT aResultCode, const char *aText, ...) function in class:USBProxyService
|
| /vbox/src/VBox/Runtime/r3/ |
| H A D | xml.cpp | 1823 void setError(const RTCError &x) function in struct:xml::IOContext 1828 void setError(const std::exception &x) function in struct:xml::IOContext 1894 catch (const xml::EIPRTFailure &err) { pContext->setError(err); } 1895 catch (const RTCError &err) { pContext->setError(err); } 1896 catch (const std::exception &err) { pContext->setError(err); } 1897 catch (...) { pContext->setError(xml::LogicError(RT_SRC_POS)); } 2020 catch (const xml::EIPRTFailure &err) { pContext->setError(err); } 2021 catch (const RTCError &err) { pContext->setError(err); } 2022 catch (const std::exception &err) { pContext->setError(err); } 2023 catch (...) { pContext->setError(xm [all...] |