Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 2fc07611b08d4a735fd34d5eb60d8e16 > files > 2166

ciao-1.10p8-3mdv2010.0.i586.rpm

<HTML>
<HEAD>
<!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 -->

<LINK rel="stylesheet" href="ciao.css" type="text/css">
<TITLE>The Ciao Prolog System               - error (library)</TITLE>
</HEAD>
<BODY> 
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_211.html">previous</A>, <A HREF="ciao_213.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC835" HREF="ciao_toc.html#TOC835">error (library)</A></H1>
<P>
<A NAME="IDX9107"></A>


<P>
<STRONG>Author(s):</STRONG> G&ouml;ran Smedb&auml;ck.


<P>
<STRONG>Version:</STRONG> 1.10#7 (2006/4/26, 19:22:13 CEST)


<P>
<STRONG>Version of last change:</STRONG> 1.9#179 (2003/12/4, 19:25:17 CET)


<P>
This file implements error predicates of different types.



<UL>
<LI><A HREF="ciao_212.html#SEC836">Usage and interface (error)</A>
<LI><A HREF="ciao_212.html#SEC837">Documentation on exports (error)</A>
</UL>



<H2><A NAME="SEC836" HREF="ciao_toc.html#TOC836">Usage and interface (<CODE>error</CODE>)</A></H2>

<div class="cartouche">

<UL>

<LI><STRONG>Library usage:</STRONG>

<CODE>:- use_module(library(error)).</CODE>

<LI><STRONG>Exports:</STRONG>


<UL>

<LI><EM>Predicates:</EM>

<A NAME="IDX9108"></A>
<CODE>error_vrml/1</CODE>, 
<A NAME="IDX9109"></A>
<CODE>output_error/1</CODE>.

</UL>

<LI><STRONG>Other modules used:</STRONG>


<UL>

<LI><EM>System library modules:</EM>

<A NAME="IDX9110"></A>
<CODE>write</CODE>.

</UL>

</UL>

</div class="cartouche">



<H2><A NAME="SEC837" HREF="ciao_toc.html#TOC837">Documentation on exports (<CODE>error</CODE>)</A></H2>
<P>
<A NAME="IDX9111"></A>
<A NAME="IDX9112"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>error_vrml/1:</B>
<DD><A NAME="IDX9113"></A>


<P>
<STRONG>Usage:</STRONG> <CODE>error_vrml(+Structure)</CODE>

<UL>
<LI><EM>Description:</EM> Given a structure with the error type as its head with possible arguments, it will write the associated error-text.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Structure</CODE> is any term.
 (<CODE>basic_props:term/1</CODE>)
</UL>

</DL>

<P>
<A NAME="IDX9114"></A>
<A NAME="IDX9115"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>output_error/1:</B>
<DD><A NAME="IDX9116"></A>


<P>
<STRONG>Usage:</STRONG> <CODE>output_error(+Message)</CODE>

<UL>
<LI><EM>Description:</EM> This predicate will print the error message given as the argument. This predicate is used for warnings that only needs to be given as information and not necessarily give an error by the VRML browser.

<LI><EM>Call and exit should be <EM>compatible</EM> with:</EM>

<CODE>+Message</CODE> is a list of <CODE>atm</CODE>s.
 (<CODE>basic_props:list/2</CODE>)
</UL>

</DL>

<P><HR><P>
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_211.html">previous</A>, <A HREF="ciao_213.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
</BODY>
</HTML>