Lua
C++
Edit

RuntimeError

This function generates a critical error and exits the program.

Syntax

Parameter Description
message error message to print

Example


#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;
}
Copyright © 2024 Ultra Software.
All rights reserved.