MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / RuntimeError

Method RuntimeError

source/script.cpp:12797–12810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12795}
12796
12797ResultType Script::RuntimeError(LPCTSTR aErrorText, LPCTSTR aExtraInfo, ResultType aErrorType, Line *aLine, Object *aPrototype)
12798{
12799 ASSERT(aErrorText);
12800 if (!aExtraInfo)
12801 aExtraInfo = _T("");
12802
12803 if (g->ExcptMode == EXCPTMODE_LINE_WORKAROUND && mCurrLine)
12804 aLine = mCurrLine;
12805
12806 if ((g->ExcptMode || mOnError.Count() || aPrototype && aPrototype->HasOwnProps()) && aErrorType != WARN)
12807 return ThrowRuntimeException(aErrorText, aExtraInfo, aLine, aErrorType, aPrototype);
12808
12809 return ShowError(aErrorText, aErrorType, aExtraInfo, aLine);
12810}
12811
12812ResultType Script::ShowError(LPCTSTR aErrorText, ResultType aErrorType, LPCTSTR aExtraInfo, Line *aLine)
12813{

Callers 15

ControlSetNameMethod · 0.80
ControlMoveMethod · 0.80
ControlSetFontMethod · 0.80
ControlChooseMethod · 0.80
AddControlMethod · 0.80
ParseOptionsMethod · 0.80
ExpandExpressionMethod · 0.80
GetEnumeratorFunction · 0.80
CallEnumeratorFunction · 0.80
SetTrayIconMethod · 0.80
LineErrorMethod · 0.80
ErrorMethod · 0.80

Calls 2

HasOwnPropsMethod · 0.80
CountMethod · 0.45

Tested by

no test coverage detected