function Promise.prototype.catch(o,h)assert(h==nil or type(h)=="\102\117\110\099\116\105\111\110"or h.__call~=nil,string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\099\097\116\099\104"))return o:_andThen(debug.traceback(nil,2),nil,h)end

function Promise.prototype:catch(failureCallback)
	assert(
		failureCallback == nil or type(failureCallback) == "function" or failureCallback.__call ~= nil,
		string.format(ERROR_NON_FUNCTION, "Promise:catch")
	)
	return self:_andThen(debug.traceback(nil, 2), nil, failureCallback)
end
