function Promise.prototype.catch(Y,P)assert(P==nil or isCallable(P),string.format(ERROR_NON_FUNCTION,"\080\114\111\109\105\115\101\058\099\097\116\099\104"))return Y:_andThen(debug.traceback(nil,2),nil,P)end

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