VirtualBox

Changeset 45805 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Apr 29, 2013 12:30:50 PM (12 years ago)
Author:
vboxsync
Message:

Main: Removed IGuestErrorInfo, added new attribute resultDetail to IVirtualBoxErrorInfo for (optionally) providing more details on the error happened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/ErrorInfo.h

    r45125 r45805  
    174174          mIsFullAvailable(false),
    175175          mResultCode(S_OK),
     176          mResultDetail(0),
    176177          m_pNext(NULL)
    177178    {
     
    183184          mIsFullAvailable(false),
    184185          mResultCode(S_OK),
     186          mResultDetail(0),
    185187          m_pNext(NULL)
    186188    {
     
    191193    ErrorInfo (const ComPtr <IVirtualBoxErrorInfo> &aPtr)
    192194        : mIsBasicAvailable (false), mIsFullAvailable (false)
    193         , mResultCode (S_OK)
     195        , mResultCode (S_OK), mResultDetail(0)
    194196        { init (aPtr); }
    195197
     
    204206    ErrorInfo (IVirtualBoxErrorInfo *aInfo)
    205207        : mIsBasicAvailable (false), mIsFullAvailable (false)
    206         , mResultCode (S_OK)
     208        , mResultCode (S_OK), mResultDetail(0)
    207209        { init (aInfo); }
    208210
     
    264266    {
    265267        return mResultCode;
     268    }
     269
     270    /**
     271     *  Returns the (optional) result detail code of the failed operation.
     272     */
     273    LONG getResultDetail() const
     274    {
     275        return mResultDetail;
    266276    }
    267277
     
    359369
    360370    HRESULT mResultCode;
     371    LONG    mResultDetail;
    361372    Guid    mInterfaceID;
    362373    Bstr    mComponent;
Note: See TracChangeset for help on using the changeset viewer.

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