Files
itgmania212121/stepmania/src/RageException.cpp
T

31 lines
656 B
C++

#include "stdafx.h"
/*
-----------------------------------------------------------------------------
Class: RageLog
Desc: See header.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "RageException.h"
#include "RageUtil.h"
RageException::RageException( const char *fmt, ...)
{
va_list va;
va_start(va, fmt);
m_sError = vssprintf( fmt, va );
#ifdef _DEBUG
MessageBox( NULL, m_sError, "Fatal Error", MB_OK );
DebugBreak();
#endif
}
const char* RageException::what() const throw ()
{
return m_sError;
}