Release 6.0.0-rc.1

This change also includes some minor packaging changes in order to make Cargo happy.
This commit is contained in:
Lucien Greathouse
2020-03-29 16:17:09 -07:00
parent 5a5b1268d3
commit 1214fc8b0d
26 changed files with 19642 additions and 26 deletions

View File

@@ -0,0 +1,28 @@
local Error = {}
Error.__index = Error
Error.Kind = {
UnknownProperty = "UnknownProperty",
PropertyNotReadable = "PropertyNotReadable",
PropertyNotWritable = "PropertyNotWritable",
Roblox = "Roblox",
}
setmetatable(Error.Kind, {
__index = function(_, key)
error(("%q is not a valid member of Error.Kind"):format(tostring(key)), 2)
end,
})
function Error.new(kind, extra)
return setmetatable({
kind = kind,
extra = extra,
}, Error)
end
function Error:__tostring()
return ("Error(%s: %s)"):format(self.kind, tostring(self.extra))
end
return Error