- Timestamp:
- Apr 25, 2022 10:25:38 AM (3 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/VirtualBoxBase.h
r93115 r94703 765 765 HRESULT setError(HRESULT aResultCode, const char *pcsz, ...); 766 766 HRESULT setError(const ErrorInfo &ei); 767 HRESULT setErrorVrcV(int vrc, const char *pcszMsgFmt, va_list va_args); 767 768 HRESULT setErrorVrc(int vrc); 768 769 HRESULT setErrorVrc(int vrc, const char *pcszMsgFmt, ...); -
trunk/src/VBox/Main/src-all/VirtualBoxBase.cpp
r93115 r94703 683 683 * @param vrc The VBox status code. 684 684 * @param pcszMsgFmt Error message format string. 685 * @param va_args Error message format string. 686 * @return COM status code appropriate for @a vrc. 687 * 688 * @sa VirtualBoxBase::setError(HRESULT, const char *, ...) 689 */ 690 HRESULT VirtualBoxBase::setErrorVrcV(int vrc, const char *pcszMsgFmt, va_list va_args) 691 { 692 return setErrorInternalV(Global::vboxStatusCodeToCOM(vrc), 693 this->getClassIID(), 694 this->getComponentName(), 695 pcszMsgFmt, va_args, 696 false /* aWarning */, 697 true /* aLogIt */, 698 vrc /* aResultDetail */); 699 } 700 701 /** 702 * Converts the VBox status code a COM one and sets the error info. 703 * 704 * @param vrc The VBox status code. 705 * @param pcszMsgFmt Error message format string. 685 706 * @param ... Argument specified in the @a pcszMsgFmt 686 707 * @return COM status code appropriate for @a vrc. … … 692 713 va_list va; 693 714 va_start(va, pcszMsgFmt); 694 HRESULT hrc = setErrorInternalV(Global::vboxStatusCodeToCOM(vrc), 695 this->getClassIID(), 696 this->getComponentName(), 697 pcszMsgFmt, va, 698 false /* aWarning */, 699 true /* aLogIt */, 700 vrc /* aResultDetail */); 715 HRESULT hrc = setErrorVrcV(vrc, pcszMsgFmt, va); 701 716 va_end(va); 702 717 return hrc;
Note:
See TracChangeset
for help on using the changeset viewer.