Functions/DarkRP/Shared/error
Function | |
Function name | DarkRP.error(string message, number stack, table hints, string path, number line) |
Description: | |
Throw a simplerr formatted error. Also halts the stack, which means that statements after calling this function will not execute. | |
Returns: | boolean succeed, string msg |
Part of Library: | DarkRP |
Realm: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Shared/error]DarkRP.error[/url][/b] |
Function parameters[edit]
- message (string)
- stack (number) (optional)
- hints (table) (optional)
- path (string) (optional)
- line (number) (optional)
The message of the error.
From which point in the function call stack to report the error. 1 to include the function that called DarkRP.error, 2 to exclude it, etc. The default value is 1.
Table containing hint strings. Use these hints to explain the error, describe possible causes or provide help to solve the problem.
Override the path of the error. Will be shown in the error message. By default this is determined by the stack level.
Override the line number of the error. By default this is determined by the stack level.