Difference between revisions of "LlRaiseError"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{LSL_Function|func_id|mode=request|func_sleep=0.0|func_energy=10.0|func=llRaiseError|sort=RaiseError|p1_type=string|p1_name=errText | {{LSL_Function|func_id|mode=request|func_sleep=0.0|func_energy=10.0|func=llRaiseError|sort=RaiseError|p1_type=string|p1_name=errText | ||
|func_desc=Causes the script to raise a run-time error. | |func_desc=Causes the script to raise a run-time error. | ||
|return_text|spec|caveats|examples|helpers|related|also|notes}} | |return_text|spec|caveats|examples=<pre>if (errState > 0) { | ||
llRaiseError("Internal Error: Something went wrong."); | |||
}</pre> | |||
|helpers|related|also|notes=This would allow script writers to log errors to an interface designed for handling errors. This would be superior to sending across the more general purpose [[llOwnerSay]] because errors are not lost over time and don't incur a time delay unlike [[llInstantMessage]].}} |
Revision as of 23:31, 1 March 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
LSL Feature Request | |
The described function does not exist. This article is a feature request. |
Summary
Function: llRaiseError( string errText );REQUEST | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Causes the script to raise a run-time error.
• string | errText |
Caveats
Examples
if (errState > 0) { llRaiseError("Internal Error: Something went wrong."); }
Notes
This would allow script writers to log errors to an interface designed for handling errors. This would be superior to sending across the more general purpose llOwnerSay because errors are not lost over time and don't incur a time delay unlike llInstantMessage.