error = luci.util.class()
function error.__init__(self, code, pso, args)
error = luci.util.class()
function error.__init__(self, code, pso, args)
self.stype = pso.sref[2]
self.package, self.section, self.option, self.value = unpack(pso.cref)
self.object = pso
self.stype = pso.sref[2]
self.package, self.section, self.option, self.value = unpack(pso.cref)
self.object = pso
:gsub("%%v", self.value or '<nil>')
:gsub("%%t", self.object and self.object:type() or '<nil>' )
:gsub("%%T", self.object and self.object:title() or '<nil>' )
:gsub("%%v", self.value or '<nil>')
:gsub("%%t", self.object and self.object:type() or '<nil>' )
:gsub("%%T", self.object and self.object:title() or '<nil>' )