2009-03-21 01:39:04 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Automatic Testing Utility
|
2017-09-29 18:13:54 +00:00
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
2009-03-21 01:39:04 +00:00
|
|
|
* PURPOSE: Fatal program exception with automatically added information
|
2017-09-29 18:13:54 +00:00
|
|
|
* COPYRIGHT: Copyright 2009 Colin Finck (colin@reactos.org)
|
2009-03-21 01:39:04 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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
|
2009-03-24 12:37:54 +00:00
|
|
|
* Integer value with the appropriate source line (__LINE__)
|
2009-03-21 01:39:04 +00:00
|
|
|
*
|
|
|
|
* @param Message
|
|
|
|
* Constant pointer to a char array containing a short message about the exception
|
|
|
|
*/
|
2009-03-24 12:37:54 +00:00
|
|
|
CFatalException::CFatalException(const char* File, int Line, const char* Message)
|
2009-03-21 01:39:04 +00:00
|
|
|
: m_File(File), m_Line(Line), m_Message(Message)
|
|
|
|
{
|
|
|
|
}
|