Difference between revisions of "love.threaderror"

(Created page)
 
m
Line 21: Line 21:
 
[[Category:Callbacks]]
 
[[Category:Callbacks]]
 
{{#set:Description=Callback function triggered when a [[Thread]] encounters an error.}}
 
{{#set:Description=Callback function triggered when a [[Thread]] encounters an error.}}
 +
{{#set:Subcategory=General}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.threaderror}}
 
{{i18n|love.threaderror}}

Revision as of 07:01, 31 October 2013

Available since LÖVE 0.9.0
This callback is not supported in earlier versions.

Callback function triggered when a Thread encounters an error.

Function

Synopsis

love.threaderror( thread, errorstr )

Arguments

Thread thread
The thread which produced the error.
string errorstr
The error message.

Returns

Nothing.

Example

function love.threaderror(thread, errorstr)
  print("Thread error!\n"..errorstr)
end

See Also


Other Languages