error(message, [show_stack_trace])
Description:
Displays a dialog windows with error message and error icon.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
Error message to display. |
|
|
|
boolean |
true |
Whether to show stack trace to be able to trace the error. |
Returns:
Does not return a value
Type: void
Examples:
Showing an error message only:
error("Invalid parameters passed.", false);
Showing an error message with a stack trace:
error("Invalid parameters passed.");
