SOL9 2.0 Class: COMError

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * COMError.h 
 * Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */



#pragma once

#include <sol/Object.h>


namespace SOL 
{

class COMError :public Object {

private:
    _com_error error;
public:
    /**
     * Constructor
     */
    COMError(_com_error& err)
    :error(err) 
    {
    }

public:
    _com_error& getError() 
    {
        return error;
    }
public:
    void dump()
    {
        _bstr_t source(error.Source());
        _bstr_t description(error.Description());
        printf("\n_com_error:\nSource=%s\nDescription=%s\n",
            (const char*)source,
            (const char*)description);
    }
};


}

Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.