errorprint.cpp revision 23179f1443b03947d85eccc81cbc6b5153a4abf3
/* $Id$ */
/** @file
* MS COM / XPCOM Abstraction Layer:
* Error info print helpers. This implements the shared code from the macros from errorprint.h.
*/
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
namespace com
{
{
"Details: code %Rhrc (0x%RX32), component %ls, interface %ls, callee %ls\n"
,
// print and log
}
{
// pcszSourceFile comes from __FILE__ macro, which always contains the full path,
// which we don't want to see printed:
strFilename.c_str());
// print and log
}
{
// print and log
}
const char *pcszContext,
const char *pcszSourceFile,
{
// if we have full error info, print something nice, and start with the actual error message
}
} /* namespace com */