Difference between revisions of "Thread:getError"
m (Added love.threaderror to the 'see also' list) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | Retrieves the error string from the thread if it produced | + | Retrieves the error string from the thread if it produced an error. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | err = Thread:getError( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|string| | + | {{param|string|err (nil)|The error message, or nil if the Thread has not caused an error.}} |
== See Also == | == See Also == | ||
* [[parent::Thread]] | * [[parent::Thread]] |
Latest revision as of 00:52, 24 November 2017
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Retrieves the error string from the thread if it produced an error.
Function
Synopsis
err = Thread:getError( )
Arguments
None.
Returns
string err (nil)
- The error message, or nil if the Thread has not caused an error.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info