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