123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><GError>: </title>
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
- <link rel="home" href="index.html" title="">
- <link rel="up" href="ch01.html" title="GLib">
- <link rel="prev" href="re13.html" title="<%GLibDateWeekday>">
- <link rel="next" href="re15.html" title="<%GLibErrorType>">
- <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
- <td width="100%" align="left" class="shortcuts"></td>
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
- <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
- <td><a accesskey="p" href="re13.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
- <td><a accesskey="n" href="re15.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
- </tr></table>
- <div class="refentry">
- <a name="id-1.1.15"></a><div class="titlepage"></div>
- <div class="refnamediv">
- <h2><GError></h2>
- <p><GError></p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.15.2"></a><h2>Description</h2>
- <p>The <code class="code">GError</code> structure contains information about
- an error that has occurred.</p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.15.3"></a><h2>Functions</h2>
- <div class="refsect2">
- <a name="id-1.1.15.3.2"></a><h3>copy</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (error:copy self))
- </pre></div>
- <p>Makes a copy of <em class="parameter"><code>error</code></em>.</p>
- <div class="refsect3">
- <a name="id-1.1.15.3.2.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>error</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GError</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.15.3.3"></a><h3>free</h3>
- <div class="informalexample"><pre class="programlisting">(define-values () (error:free self))
- </pre></div>
- <p>Frees a <span class="type">GError</span> and associated resources.</p>
- <div class="refsect3">
- <a name="id-1.1.15.3.3.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>error</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GError</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.15.3.4"></a><h3>matches?</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (error:matches? self domain code))
- </pre></div>
- <p>Returns <code class="constant">TRUE</code> if <em class="parameter"><code>error</code></em> matches <em class="parameter"><code>domain</code></em> and <em class="parameter"><code>code</code></em>, <code class="constant">FALSE</code>
- otherwise. In particular, when <em class="parameter"><code>error</code></em> is <code class="constant">NULL</code>, <code class="constant">FALSE</code> will
- be returned.
- </p>
- <p>If <em class="parameter"><code>domain</code></em> contains a <code class="code">FAILED</code> (or otherwise generic) error code,
- you should generally not check for it explicitly, but should
- instead treat any not-explicitly-recognized error code as being
- equivalent to the <code class="code">FAILED</code> code. This way, if the domain is
- extended in the future to provide a more specific error code for
- a certain case, your code will still work.</p>
- <div class="refsect3">
- <a name="id-1.1.15.3.4.5"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>error</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GError</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>domain</p></td>
- <td class="parameter_description">
- <p>an error domain</p>
- <p>Passed as <code class="code">domain</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>code</p></td>
- <td class="parameter_description">
- <p>an error code</p>
- <p>Passed as <code class="code">code</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.15.3.5"></a><h3>error:new-literal</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (error:new-literal domain code message))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.15.3.5.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>domain</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">domain</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>code</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">code</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>message</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">message</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr>Generated by GTK-Doc V1.33.1</div>
- </body>
- </html>
|