errorprint.cpp revision e64031e20c39650a7bc902a3e1aba613b9415dee
/* $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 Oracle Corporation
*
* 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.
*/
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
else
}
} /* namespace com */