VirtualBox

Ignore:
Timestamp:
Mar 11, 2013 9:59:05 AM (12 years ago)
Author:
vboxsync
Message:

Main/VirtualBoxClient: add method to perform VM error checking which simplifies client code
com/ErrorInfo: small bugfix (the object where the error information originated was always lost), added a way to inject whole error object structures which needed the bugfix
Frontends/VBoxSDL: sample code how to use the new method

File:
1 edited

Legend:

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

    r44528 r44970  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2013 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    445445
    446446    /**
     447     *  Constructs a new instance from an ErrorInfo object, to inject a full
     448     *  error info created elsewhere.
     449     *
     450     *  @param aInfo    @c true to prevent fetching error info and leave
     451     *                  the instance uninitialized.
     452     */
     453    ErrorInfoKeeper(const ErrorInfo &aInfo)
     454        : ErrorInfo(false), mForgot(false)
     455    {
     456        copyFrom(aInfo);
     457    }
     458
     459    /**
    447460     *  Destroys this instance and automatically calls #restore() which will
    448461     *  either restore error info fetched by the constructor or do nothing
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