File: error.xml

package info (click to toggle)
scilab 5.2.2-9
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 334,832 kB
  • ctags: 52,586
  • sloc: xml: 526,945; ansic: 223,590; fortran: 163,080; java: 56,934; cpp: 33,840; tcl: 27,936; sh: 20,397; makefile: 9,908; ml: 9,451; perl: 1,323; cs: 614; lisp: 30
file content (85 lines) | stat: -rw-r--r-- 3,348 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="error">
  <info>
    <pubdate>$LastChangedDate$</pubdate>
  </info>
  <refnamediv>
    <refname>error</refname>
    <refpurpose> error messages</refpurpose>
  </refnamediv>
  <refsynopsisdiv>
    <title>Calling Sequence</title>
    <synopsis>error(message [,n])
error(n)
error(n,pos)</synopsis>
  </refsynopsisdiv>
  <refsection>
    <title>Parameters</title>
    <variablelist>
      <varlistentry>
        <term>message</term>
        <listitem>
          <para>a character string. The error message to be displayed.</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>n</term>
        <listitem>
          <para>an integer. The number associated with the error message</para>
        </listitem>
      </varlistentry>
      <varlistentry>
        <term>pos</term>
        <listitem>
          <para>an integer. a parameter for the error message</para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsection>
  <refsection>
    <title>Description</title>
    <para><literal>error</literal> function allow to issue an error message and to
      handle the error. By defaut <literal>error</literal> stops the current
      execution and resume to the prompt level. This default can be changed
      using the <literal>errcatch</literal> or <literal>execstr(...,'errcatch')</literal> functions.</para>
    <para><literal>error(message)</literal> prints the character string contained in
      <literal>message</literal>. The number associated with the error message is
      10000 </para>
    <para><literal>error(message,n)</literal> prints the character string contained in
      <literal>message</literal>. The number associated with the error message is
      given by <literal>n</literal>. This number should be greater than 10000. </para>
    <para><literal>error(n)</literal> prints the predefined error message associated with
      the error number <literal>n</literal>. </para>
    <para>Some predefined error messages  require a parameter (see
      <link linkend="error_table">error_table</link>). In this case the <literal>pos</literal> 
      argument must be used <literal>error(n,pos)</literal> to give the parameter
      value. In the other cases the <literal>pos</literal>  argument is ignored.</para>
    <para> see <link linkend="error_table">error_table</link> for a list of error messages and the
      associated error numbers.</para>
  </refsection>
  <refsection>
    <title>Examples</title>
    <programlisting role="example"><![CDATA[ 
error('my error message')
error(43)
error(52,3)
 ]]></programlisting>
  </refsection>
  <refsection>
    <title>See Also</title>
    <simplelist type="inline">
      <member>
        <link linkend="warning">warning</link>
      </member>
      <member>
        <link linkend="errcatch">errcatch</link>
      </member>
      <member>
        <link linkend="execstr">execstr</link>
      </member>
      <member>
        <link linkend="lasterror">lasterror</link>
      </member>
    </simplelist>
  </refsection>
</refentry>