mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
26 lines
879 B
C++
26 lines
879 B
C++
/*
|
|
* PROJECT: ReactOS Automatic Testing Utility
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Fatal program exception with automatically added information
|
|
* COPYRIGHT: Copyright 2009 Colin Finck (colin@reactos.org)
|
|
*/
|
|
|
|
#include "precomp.h"
|
|
|
|
/**
|
|
* Constructs a CFatalException object, which is catched in wmain as an exception.
|
|
* You should always use the FATAL macro for throwing this exception.
|
|
*
|
|
* @param File
|
|
* Constant pointer to a char array with the source file where the exception occured (__FILE__)
|
|
*
|
|
* @param Line
|
|
* Integer value with the appropriate source line (__LINE__)
|
|
*
|
|
* @param Message
|
|
* Constant pointer to a char array containing a short message about the exception
|
|
*/
|
|
CFatalException::CFatalException(const char* File, int Line, const char* Message)
|
|
: m_File(File), m_Line(Line), m_Message(Message)
|
|
{
|
|
}
|