1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
<refentry id="errorname.element">
<?dbhtml filename="errorname.html"?>
<refentryinfo>
<pubdate>$Date$</pubdate>
<releaseinfo>$Revision$</releaseinfo>
</refentryinfo>
<refmeta>
<indexterm><primary>elements</primary>
<secondary>errorname</secondary></indexterm>
<refentrytitle>errorname</refentrytitle>
<refmiscinfo>Element</refmiscinfo>
</refmeta>
<refnamediv>
<refname>errorname</refname>
<refpurpose>&errorname.purpose;</refpurpose>
</refnamediv>
&errorname.synopsis.gen;
<refsect1 condition='ref.description'><title>Description</title>
<para><sgmltag>ErrorName</sgmltag> holds the symbolic name of an error.</para>
<para>DocBook provides four elements for identifying the parts of an error message:
<sgmltag>ErrorCode</sgmltag>, for the alphanumeric error code (e.g., <quote>-2</quote>);
<sgmltag>ErrorName</sgmltag>, for the symbolic name of the error
(e.g., <quote>ENOENT</quote>);
<sgmltag>ErrorText</sgmltag>, for the text of the error message (e.g., <quote>file
not found</quote>); and
<sgmltag>ErrorType</sgmltag>, for the error type (e.g., <quote>recoverable</quote>).
</para>
<para>Prior to DocBook V4.2, the <sgmltag>ErrorName</sgmltag> element was the
recommended element for error <emphasis>messages</emphasis>. However, this left no
element for symoblic names, so the <sgmltag>ErrorText</sgmltag> element was added
and the semantics of the error elements adjusted slightly.
</para>
<refsect2><title>Processing expectations</title>
<para>&format.inline;
</para>
</refsect2>
&errorname.parents.gen;
&errorname.children.gen;
</refsect1>
<refsect1 condition='ref.elem.seealso'><title>See Also</title>
&errorname.seealso.gen;
</refsect1>
<refsect1><title>Examples</title>
&errorname.example.seealso.gen;
</refsect1>
</refentry>
|