<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.iccup.org/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AError</id>
	<title>Модуль:Error - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iccup.org/index.php?action=history&amp;feed=atom&amp;title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C%3AError"/>
	<link rel="alternate" type="text/html" href="https://wiki.iccup.org/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Error&amp;action=history"/>
	<updated>2026-06-02T05:24:47Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.iccup.org/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Error&amp;diff=782&amp;oldid=prev</id>
		<title>DarkMuse в 18:27, 24 сентября 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.iccup.org/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Error&amp;diff=782&amp;oldid=prev"/>
		<updated>2024-09-24T18:27:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 18:27, 24 сентября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;---&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- @Liquipedia&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- wiki=commons&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- page=Module:Error&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- Please see https://github.com/Liquipedia/Lua-Modules to contribute&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;--&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local Class = require(&amp;#039;Module:Class&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local Class = require(&amp;#039;Module:Class&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DarkMuse</name></author>
	</entry>
	<entry>
		<id>https://wiki.iccup.org/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Error&amp;diff=781&amp;oldid=prev</id>
		<title>DarkMuse: Новая страница: «--- -- @Liquipedia -- wiki=commons -- page=Module:Error -- -- Please see https://github.com/Liquipedia/Lua-Modules to contribute --  local Class = require(&#039;Module:Class&#039;)  --[[ A minimal error class, whose purpose is to allow additional fields to be attached to an error message string. It has only one method, the __tostring metamethod, and one required field, error.message.  The class is intended to be open, meaning that its fields are all public and can be...»</title>
		<link rel="alternate" type="text/html" href="https://wiki.iccup.org/index.php?title=%D0%9C%D0%BE%D0%B4%D1%83%D0%BB%D1%8C:Error&amp;diff=781&amp;oldid=prev"/>
		<updated>2024-09-24T18:26:59Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «--- -- @Liquipedia -- wiki=commons -- page=Module:Error -- -- Please see https://github.com/Liquipedia/Lua-Modules to contribute --  local Class = require(&amp;#039;Module:Class&amp;#039;)  --[[ A minimal error class, whose purpose is to allow additional fields to be attached to an error message string. It has only one method, the __tostring metamethod, and one required field, error.message.  The class is intended to be open, meaning that its fields are all public and can be...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;---&lt;br /&gt;
-- @Liquipedia&lt;br /&gt;
-- wiki=commons&lt;br /&gt;
-- page=Module:Error&lt;br /&gt;
--&lt;br /&gt;
-- Please see https://github.com/Liquipedia/Lua-Modules to contribute&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local Class = require(&amp;#039;Module:Class&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
A minimal error class, whose purpose is to allow additional fields to be&lt;br /&gt;
attached to an error message string. It has only one method, the __tostring&lt;br /&gt;
metamethod, and one required field, error.message.&lt;br /&gt;
&lt;br /&gt;
The class is intended to be open, meaning that its fields are all public and&lt;br /&gt;
can be used for any purpose. By convention, the following fields have specific&lt;br /&gt;
meanings:&lt;br /&gt;
&lt;br /&gt;
error.message: A short error message describing the error. (Required)&lt;br /&gt;
&lt;br /&gt;
error.stacks: The stack traces of the error. The first stack trace is the one&lt;br /&gt;
last thrown. Subsequent stack traces are from when the error was rethrown by an&lt;br /&gt;
error handler handling the same error.&lt;br /&gt;
&lt;br /&gt;
error.originalErrors: When an error handler throws (not a rethrow), the original&lt;br /&gt;
error that it was handling is tracked here.&lt;br /&gt;
&lt;br /&gt;
error.childErrors: A composite error is one that aggregates many errors into a&lt;br /&gt;
summary. Composite errors will place child errors here.&lt;br /&gt;
&lt;br /&gt;
error.innerError: Used when an error instance wraps something that&amp;#039;s not a&lt;br /&gt;
message string.&lt;br /&gt;
&lt;br /&gt;
error.header: Generic error handlers like Logic.tryOrElseLog will place a&lt;br /&gt;
preamble-like text here to give some context to the error.&lt;br /&gt;
&lt;br /&gt;
error.noStack: Disables the stack trace&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
---@class Error: BaseClass&lt;br /&gt;
---@operator call(string|table|nil|any):Error&lt;br /&gt;
---@field message string&lt;br /&gt;
---@field childErrors? Error[]&lt;br /&gt;
---@field header string?&lt;br /&gt;
---@field innerError any&lt;br /&gt;
---@field originalErrors? Error[]&lt;br /&gt;
---@field stacks? string[]&lt;br /&gt;
local Error = Class.new(function(self, any)&lt;br /&gt;
	-- Normalize the various ways an error can be thrown&lt;br /&gt;
	if type(any) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		self.message = any&lt;br /&gt;
	elseif type(any) == &amp;#039;table&amp;#039; then&lt;br /&gt;
		local props = any&lt;br /&gt;
		for key, value in pairs(props) do&lt;br /&gt;
			self[key] = value&lt;br /&gt;
		end&lt;br /&gt;
	elseif any ~= nil then&lt;br /&gt;
		self.message = tostring(any)&lt;br /&gt;
		self.innerError = any&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	self.message = self.message or &amp;#039;Unknown error&amp;#039;&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
---@param error Error&lt;br /&gt;
---@return boolean&lt;br /&gt;
function Error.isError(error)&lt;br /&gt;
	return Class.instanceOf(error, Error) and type(error.message) == &amp;#039;string&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Error:__tostring()&lt;br /&gt;
	return self.message&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return Error&lt;/div&gt;</summary>
		<author><name>DarkMuse</name></author>
	</entry>
</feed>