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