<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hydrogenaudio.org/index.php?action=history&amp;feed=atom&amp;title=Foobar2000%3ADevelopment%3AExceptions</id>
	<title>Foobar2000:Development:Exceptions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hydrogenaudio.org/index.php?action=history&amp;feed=atom&amp;title=Foobar2000%3ADevelopment%3AExceptions"/>
	<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Development:Exceptions&amp;action=history"/>
	<updated>2026-04-30T01:41:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Development:Exceptions&amp;diff=35768&amp;oldid=prev</id>
		<title>DEATH: Created page with &quot;Category:Foobar2000 Development  == Exception use == Most of API functions use C++ exceptions to signal failure conditions. All used exception classes must derive from &lt;co...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Development:Exceptions&amp;diff=35768&amp;oldid=prev"/>
		<updated>2022-06-22T12:20:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:Foobar2000_Development&quot; title=&quot;Category:Foobar2000 Development&quot;&gt;Category:Foobar2000 Development&lt;/a&gt;  == Exception use == Most of API functions use C++ exceptions to signal failure conditions. All used exception classes must derive from &amp;lt;co...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Foobar2000 Development]]&lt;br /&gt;
&lt;br /&gt;
== Exception use ==&lt;br /&gt;
Most of API functions use C++ exceptions to signal failure conditions. All used exception classes must derive from &amp;lt;code&amp;gt;std::exception&amp;lt;/code&amp;gt;; this design allows various instances of code to use single &amp;lt;code&amp;gt;catch()&amp;lt;/code&amp;gt; line to obtain human-readable description of the problem to display.&lt;br /&gt;
&lt;br /&gt;
Additionally, special subclasses of exceptions are defined for use in specific conditions, such as &amp;lt;code&amp;gt;exception_io&amp;lt;/code&amp;gt; for I/O failures. As a result, you must provide an exception handler whenever you invoke any kind of I/O code that may fail, unless in specific case calling context already handles exceptions (e.g. input implementation code - any exceptions should be forwarded to calling context, since exceptions are a part of input API).&lt;br /&gt;
&lt;br /&gt;
Implementations of global callback services such as &amp;lt;code&amp;gt;playlist_callback&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;playback_callback&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;library_callback&amp;lt;/code&amp;gt; must not throw unhandled exceptions; behaviors in case they do are undefined (app termination is to be expected).&lt;/div&gt;</summary>
		<author><name>DEATH</name></author>
	</entry>
</feed>