Debian Codegraph @

en/refpages/elements/errorcode/refentry.xml

raw symbols SCIP
1 <refentry id="errorcode.element">
2 <?dbhtml filename="errorcode.html"?>
3 <refentryinfo>
4 <pubdate>$Date$</pubdate>
5 <releaseinfo>$Revision$</releaseinfo>
6 </refentryinfo>
7
8 <refmeta>
9 <indexterm><primary>elements</primary>
10 <secondary>errorcode</secondary></indexterm>
11 <refentrytitle>errorcode</refentrytitle>
12 <refmiscinfo>Element</refmiscinfo>
13 </refmeta>
14 <refnamediv>
15 <refname>errorcode</refname>
16 <refpurpose>&errorcode.purpose;</refpurpose>
17 </refnamediv>
18
19 &errorcode.synopsis.gen;
20 <refsect1 condition='ref.description'><title>Description</title>
21
22 <para>An error code. Error codes are often numeric, but in some environments
23 they may be symbolic constants.
24 </para>
25
26 <para>DocBook provides four elements for identifying the parts of an error message:
27 <sgmltag>ErrorCode</sgmltag>, for the alphanumeric error code (e.g., <quote>-2</quote>);
28 <sgmltag>ErrorName</sgmltag>, for the symbolic name of the error
29 (e.g., <quote>ENOENT</quote>);
30 <sgmltag>ErrorText</sgmltag>, for the text of the error message (e.g., <quote>file
31 not found</quote>); and
32 <sgmltag>ErrorType</sgmltag>, for the error type (e.g., <quote>recoverable</quote>).
33 </para>
34
35 <refsect2><title>Processing expectations</title>
36 <para>
37 &format.inline; &pexp.moreinfo;
38 </para>
39 </refsect2>
40
41 &errorcode.parents.gen;
42 &errorcode.children.gen;
43 </refsect1>
44 <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title>
45 <variablelist>
46 <varlistentry><term>moreinfo</term>
47 <listitem>
48 <para>
49 If <sgmltag class='attribute'>MoreInfo</sgmltag> is set to <literal>RefEntry</literal>,
50 it implies that a <sgmltag>RefEntry</sgmltag> exists which further describes the
51 <sgmltag>ErrorCode</sgmltag>.
52 </para>
53 </listitem>
54 </varlistentry>
55 </variablelist>
56 </refsect1>
57 <refsect1 condition='ref.elem.seealso'><title>See Also</title>
58 &errorcode.seealso.gen;
59 </refsect1>
60 <refsect1><title>Examples</title>
61
62 <informalexample role="example-source">
63 <programlisting>&errorcode.example.1.txt;</programlisting>
64 </informalexample>
65
66 <anchor id="ex.os.errorcode.1" role="HACK-ex.out.start"/>
67 &errorcode.example.1.gen;
68 <anchor id="ex.oe.errorcode.1" role="HACK-ex.out.end"/>
69
70 <informalexample role="example-source">
71 <programlisting>&errorcode.example.2.txt;</programlisting>
72 </informalexample>
73
74 <anchor id="ex.os.errorcode.2" role="HACK-ex.out.start"/>
75 &errorcode.example.2.gen;
76 <anchor id="ex.oe.errorcode.2" role="HACK-ex.out.end"/>
77
78 &errorcode.example.seealso.gen;
79 </refsect1>
80 </refentry>
81