Difference between revisions of "Thread:getError"

m
m
 
Line 4: Line 4:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
value = Thread:getError( )
+
err = Thread:getError( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|string|value|The error message.}}
+
{{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