This function generates a critical error and exits the program.
Parameter | Description |
---|---|
message | error message to print |
#include "UltraEngine.h"
using namespace UltraEngine;
int main(int argc, const char* argv[])
{
try
{
RuntimeError("Something went wrong!");
}
catch (std::exception e)
{
WString error = e.what();
DebugBreak();
}
return 0;
}