bvcexception.cpp

来自「BCAM 1394 Driver」· C++ 代码 · 共 59 行

CPP
59
字号
//-----------------------------------------------------------------------------
//  (c) 2002 by  Basler Vision Technologies
//  Section:  Vision Components
//  Project:  BVC
//  $Header: BvcException.cpp, 3, 25.09.2003 12:36:45, Nebelung, H.$
//-----------------------------------------------------------------------------
/**
  \file     BvcException.cpp

  \brief   Implemention of class BvcException
*/
#include "stdafx.h"
#include <BvcError.h>
#include "BvcException.h"

using namespace Bvc;

const CString BvcException::m_LibraryFile = _T( "BvcError.dll" );

//------------------------------------------------------------------------------
// BvcException::BvcException( ErrorNumber e, CString context, va_list *pArgs): m_Error( e ), m_Description( "<no error message available>" ), m_Context( context )
// Author: 
//------------------------------------------------------------------------------
/**
* \brief Constructs a new object.
*
* \param     e The error code.
* \param     context The context string, describing the circumstances of the exception.
* \param     *pArgs Pointer to a list of arguments
*/
//------------------------------------------------------------------------------
BvcException::BvcException( ErrorNumber e,  CString context, va_list *pArgs)
: Exception( e, context, true )
{
  FormatMessage( m_LibraryFile, (char**)pArgs );
}

//------------------------------------------------------------------------------
// BvcException::BvcException( ErrorNumber e, CString context , PVOID pArg ) 
// Author: Hartmut Nebelung
//------------------------------------------------------------------------------
/**
* \overload
* \brief Constructs a new object
*
* \param     e The error code.
* \param     context The context string, describing the circumstances of the exception.
* \param     lpArgs Pointer to a single argument
*/
//------------------------------------------------------------------------------
BvcException::BvcException( ErrorNumber e, CString context , PVOID pArg  ) 
: Exception( e, context, true )
{
  FormatMessage( m_LibraryFile, (char**) pArg );
};



⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?