VirtualBox

Ignore:
Timestamp:
Jan 28, 2013 11:09:48 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83388
Message:

Main/webservice: improve API fault handling, provide exact method name information and complete error message details in the single error string, even with multiple errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.h

    r43136 r44414  
    33 *      header file for "real" web server code.
    44 *
    5  * Copyright (C) 2006-2011 Oracle Corporation
     5 * Copyright (C) 2006-2013 Oracle Corporation
    66 *
    77 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    7272void RaiseSoapInvalidObjectFault(struct soap *soap, WSDLT_ID obj);
    7373
    74 void RaiseSoapRuntimeFault2(struct soap *soap, HRESULT apirc, IUnknown *pObj, const com::Guid &iid);
    75 
    76 /**
    77  * Template function called everywhere from methodmaps.cpp which calls
    78  * RaiseSoapRuntimeFault2() with the correct COM interface ID.
    79  * @param soap
    80  * @param apirc
    81  * @param pObj
    82  */
    83 template <class T>
    84 void RaiseSoapRuntimeFault(struct soap *soap, HRESULT apirc, const ComPtr<T> &pObj)
    85 {
    86     RaiseSoapRuntimeFault2(soap, apirc, pObj, COM_IIDOF(T));
    87 }
     74void RaiseSoapRuntimeFault(struct soap *soap, const char *pcszMethodName, HRESULT apirc, IUnknown *pObj, const com::Guid &iid);
    8875
    8976/****************************************************************************
     
    9986std::string Base64EncodeByteArray(ComSafeArrayIn(BYTE, aData));
    10087
    101 void Base64DecodeByteArray(struct soap *soap, std::string& aStr, ComSafeArrayOut(BYTE, aData));
     88void Base64DecodeByteArray(struct soap *soap, std::string& aStr, ComSafeArrayOut(BYTE, aData), const char *pszMethodName, IUnknown *pObj, const com::Guid &iid);
    10289/****************************************************************************
    10390 *
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