VirtualBox

Ignore:
Timestamp:
Aug 25, 2011 3:23:08 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73681
Message:

Main/ErrorInfo: allow to set standard errors without text and error setting
from an existing com::ErrorInfo object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r37423 r38533  
    3535{
    3636class File;
     37}
     38
     39namespace com
     40{
     41class ErrorInfo;
    3742}
    3843
     
    746751                                    const GUID &aIID,
    747752                                    const char *aComponent,
    748                                     const Utf8Str &aText,
     753                                    Utf8Str aText,
    749754                                    bool aWarning,
    750755                                    bool aLogIt);
    751756    static void clearError(void);
    752757
     758    HRESULT setError(HRESULT aResultCode);
    753759    HRESULT setError(HRESULT aResultCode, const char *pcsz, ...);
     760    HRESULT setError(const ErrorInfo &ei);
    754761    HRESULT setWarning(HRESULT aResultCode, const char *pcsz, ...);
    755762    HRESULT setErrorNoLog(HRESULT aResultCode, const char *pcsz, ...);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette