68 lines
10 KiB
HTML
68 lines
10 KiB
HTML
|
<!-- Common Lisp HyperSpec (TM), version 7.0 generated by Kent M. Pitman on Mon, 11-Apr-2005 2:31am EDT -->
|
||
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>CLHS: Section 9.1.1</TITLE>
|
||
|
<LINK HREF="../Data/clhs.css" REL="stylesheet" TYPE="text/css" />
|
||
|
<META HTTP-EQUIV="Author" CONTENT="Kent M. Pitman">
|
||
|
<META HTTP-EQUIV="Organization" CONTENT="LispWorks Ltd.">
|
||
|
<LINK REL=TOP HREF="../Front/index.htm">
|
||
|
<LINK REL=COPYRIGHT HREF="../Front/Help.htm#Legal">
|
||
|
<LINK REL=DISCLAIMER HREF="../Front/Help.htm#Disclaimer">
|
||
|
<LINK REL=PREV HREF="09_a.htm">
|
||
|
<LINK REL=UP HREF="09_a.htm">
|
||
|
<LINK REL=NEXT HREF="09_aaa.htm">
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
<H1><A REV=MADE HREF="http://www.lispworks.com/"><IMG WIDTH=80 HEIGHT=65 ALT="[LISPWORKS]" SRC="../Graphics/LWSmall.gif" ALIGN=Bottom></A><A REL=TOP HREF="../Front/index.htm"><IMG WIDTH=237 HEIGHT=65 ALT="[Common Lisp HyperSpec (TM)]" SRC="../Graphics/CLHS_Sm.gif" ALIGN=Bottom></A> <A REL=PREV HREF="09_a.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="09_a.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="09_aaa.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
|
||
|
|
||
|
<HR>
|
||
|
|
||
|
<H2>
|
||
|
9.1.1 Condition Types</H2> <P>
|
||
|
The next figure lists the <A REL=DEFINITION HREF="26_glo_s.htm#standardized"><I>standardized</I></A> <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A>. Additional <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A> can be defined by using <A REL=DEFINITION HREF="m_defi_5.htm#define-condition"><B>define-condition</B></A>. <P>
|
||
|
<A NAME="standardizedconditiontypes"> <PRE>
|
||
|
<A REL=DEFINITION HREF="e_arithm.htm#arithmetic-error">arithmetic-error</A> <A REL=DEFINITION HREF="e_floa_2.htm#floating-point-overflow">floating-point-overflow</A> <A REL=DEFINITION HREF="e_smp_tp.htm#simple-type-error">simple-type-error</A>
|
||
|
<A REL=DEFINITION HREF="e_cell_e.htm#cell-error">cell-error</A> <A REL=DEFINITION HREF="e_floa_3.htm#floating-point-underflow">floating-point-underflow</A> <A REL=DEFINITION HREF="e_smp_wa.htm#simple-warning">simple-warning</A>
|
||
|
<A REL=DEFINITION HREF="e_cnd.htm#condition">condition</A> <A REL=DEFINITION HREF="e_pkg_er.htm#package-error">package-error</A> <A REL=DEFINITION HREF="e_storag.htm#storage-condition">storage-condition</A>
|
||
|
<A REL=DEFINITION HREF="e_contro.htm#control-error">control-error</A> <A REL=DEFINITION HREF="e_parse_.htm#parse-error">parse-error</A> <A REL=DEFINITION HREF="e_stm_er.htm#stream-error">stream-error</A>
|
||
|
<A REL=DEFINITION HREF="e_divisi.htm#division-by-zero">division-by-zero</A> <A REL=DEFINITION HREF="e_pr_not.htm#print-not-readable">print-not-readable</A> <A REL=DEFINITION HREF="e_style_.htm#style-warning">style-warning</A>
|
||
|
<A REL=DEFINITION HREF="e_end_of.htm#end-of-file">end-of-file</A> <A REL=DEFINITION HREF="e_progra.htm#program-error">program-error</A> <A REL=DEFINITION HREF="e_tp_err.htm#type-error">type-error</A>
|
||
|
<A REL=DEFINITION HREF="a_error.htm#error">error</A> <A REL=DEFINITION HREF="e_rder_e.htm#reader-error">reader-error</A> <A REL=DEFINITION HREF="e_unboun.htm#unbound-slot">unbound-slot</A>
|
||
|
<A REL=DEFINITION HREF="e_file_e.htm#file-error">file-error</A> <A REL=DEFINITION HREF="e_seriou.htm#serious-condition">serious-condition</A> <A REL=DEFINITION HREF="e_unbo_1.htm#unbound-variable">unbound-variable</A>
|
||
|
<A REL=DEFINITION HREF="e_floa_1.htm#floating-point-inexact">floating-point-inexact</A> <A REL=DEFINITION HREF="e_smp_cn.htm#simple-condition">simple-condition</A> <A REL=DEFINITION HREF="e_undefi.htm#undefined-function">undefined-function</A>
|
||
|
<A REL=DEFINITION HREF="e_floati.htm#floating-point-invalid-operation">floating-point-invalid-operation</A> <A REL=DEFINITION HREF="e_smp_er.htm#simple-error">simple-error</A> <A REL=DEFINITION HREF="e_warnin.htm#warning">warning</A>
|
||
|
</PRE>
|
||
|
<P><B>Figure 9-1. Standardized Condition Types</B></A> <P>
|
||
|
All <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> types are <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtypes</I></A> of <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> <A REL=DEFINITION HREF="e_cnd.htm#condition"><B>condition</B></A>. That is, <P>
|
||
|
<PRE>
|
||
|
(typep c 'condition) => <A REL=DEFINITION HREF="26_glo_t.htm#true">true</A>
|
||
|
</PRE>
|
||
|
</TT> if and only if <I>c</I> is a <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A>. <P>
|
||
|
<A REL=DEFINITION HREF="26_glo_i.htm#implementation"><I>Implementations</I></A> must define all specified <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtype</I></A> relationships. Except where noted, all <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtype</I></A> relationships indicated in this document are not mutually exclusive. A <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> inherits the structure of its <A REL=DEFINITION HREF="26_glo_s.htm#supertype"><I>supertypes</I></A>. <P>
|
||
|
The metaclass of the <A REL=DEFINITION HREF="26_glo_c.htm#class"><I>class</I></A> <A REL=DEFINITION HREF="e_cnd.htm#condition"><B>condition</B></A> is not specified. <A REL=DEFINITION HREF="26_glo_n.htm#name"><I>Names</I></A> of <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A> may be used to specify <A REL=DEFINITION HREF="26_glo_s.htm#supertype"><I>supertype</I></A> relationships in <A REL=DEFINITION HREF="m_defi_5.htm#define-condition"><B>define-condition</B></A>, but the consequences are not specified if an attempt is made to use a <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A> as a <A REL=DEFINITION HREF="26_glo_s.htm#superclass"><I>superclass</I></A> in a <A REL=DEFINITION HREF="m_defcla.htm#defclass"><B>defclass</B></A> <A REL=DEFINITION HREF="26_glo_f.htm#form"><I>form</I></A>. <P>
|
||
|
The next figure shows <A REL=DEFINITION HREF="26_glo_o.htm#operator"><I>operators</I></A> that define <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A> and creating <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>conditions</I></A>. <P>
|
||
|
<PRE>
|
||
|
<A REL=DEFINITION HREF="m_defi_5.htm#define-condition">define-condition</A> <A REL=DEFINITION HREF="f_mk_cnd.htm#make-condition">make-condition</A>
|
||
|
</PRE>
|
||
|
<P><B>Figure 9-2. Operators that define and create conditions.</B> <P>
|
||
|
The next figure shows <A REL=DEFINITION HREF="26_glo_o.htm#operator"><I>operators</I></A> that <A REL=DEFINITION HREF="26_glo_r.htm#read"><I>read</I></A> the <A REL=DEFINITION HREF="26_glo_v.htm#value"><I>value</I></A> of <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_s.htm#slot"><I>slots</I></A>. <P>
|
||
|
<PRE>
|
||
|
<A REL=DEFINITION HREF="f_arithm.htm#arithmetic-error-operands">arithmetic-error-operands</A> <A REL=DEFINITION HREF="f_smp_cn.htm#simple-condition-format-arguments">simple-condition-format-arguments</A>
|
||
|
<A REL=DEFINITION HREF="f_arithm.htm#arithmetic-error-operation">arithmetic-error-operation</A> <A REL=DEFINITION HREF="f_smp_cn.htm#simple-condition-format-control">simple-condition-format-control</A>
|
||
|
<A REL=DEFINITION HREF="f_cell_e.htm#cell-error-name">cell-error-name</A> <A REL=DEFINITION HREF="f_stm_er.htm#stream-error-stream">stream-error-stream</A>
|
||
|
<A REL=DEFINITION HREF="f_file_e.htm#file-error-pathname">file-error-pathname</A> <A REL=DEFINITION HREF="f_tp_err.htm#type-error-datum">type-error-datum</A>
|
||
|
<A REL=DEFINITION HREF="f_pkg_er.htm#package-error-package">package-error-package</A> <A REL=DEFINITION HREF="f_tp_err.htm#type-error-expected-type">type-error-expected-type</A>
|
||
|
<A REL=DEFINITION HREF="f_pr_not.htm#print-not-readable-object">print-not-readable-object</A> <A REL=DEFINITION HREF="f_unboun.htm#unbound-slot-instance">unbound-slot-instance</A>
|
||
|
</PRE>
|
||
|
<P><B>Figure 9-3. Operators that read condition slots.</B> <P>
|
||
|
|
||
|
|
||
|
<A REL=CHILD HREF="09_aaa.htm"><H2>
|
||
|
9.1.1.1 Serious Conditions</H2></A><P><P><HR>The following <A REL=META HREF="../Front/X3J13Iss.htm">X3J13 cleanup issues</A>, <I>not part of the specification</I>, apply to this section:<P><UL><LI> <A REL=CHILD HREF="../Issues/iss170.htm">FORMAT-STRING-ARGUMENTS:SPECIFY</A><LI> <A REL=CHILD HREF="../Issues/iss065.htm">COMPILER-DIAGNOSTICS:USE-HANDLER</A><LI> <A REL=CHILD HREF="../Issues/iss163.htm">FLOATING-POINT-CONDITION-NAMES:X3J13-NOV-89</A><LI> <A REL=CHILD HREF="../Issues/iss289.htm">READER-ERROR:NEW-TYPE</A><LI> <A REL=CHILD HREF="../Issues/iss002.htm">ACCESS-ERROR-NAME</A><LI> <A REL=CHILD HREF="../Issues/iss255.htm">PARSE-ERROR-STREAM:SPLIT-TYPES</A><LI> <A REL=CHILD HREF="../Issues/iss089.htm">DATA-IO:ADD-SUPPORT</A><LI> <A REL=CHILD HREF="../Issues/iss354.htm">UNDEFINED-VARIABLES-AND-FUNCTIONS:COMPROMISE</A><P></UL><HR>
|
||
|
|
||
|
<A REL=NAVIGATOR HREF="../Front/StartPts.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Starting Points]" SRC="../Graphics/StartPts.gif" ALIGN=Bottom></A><A REL=TOC HREF="../Front/Contents.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Contents]" SRC="../Graphics/Contents.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Master.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Index]" SRC="../Graphics/Index.gif" ALIGN=Bottom></A><A REL=INDEX HREF="../Front/X_Symbol.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Symbols]" SRC="../Graphics/Symbols.gif" ALIGN=Bottom></A><A REL=GLOSSARY HREF="../Body/26_a.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Glossary]" SRC="../Graphics/Glossary.gif" ALIGN=Bottom></A><A HREF="../Front/X3J13Iss.htm"><IMG WIDTH=80 HEIGHT=40 ALT="[Issues]" SRC="../Graphics/Issues.gif" ALIGN=Bottom></A><BR>
|
||
|
|
||
|
<A REL=COPYRIGHT HREF="../Front/Help.htm#Legal"><I>Copyright 1996-2005, LispWorks Ltd. All rights reserved.</I></A><P>
|
||
|
</BODY>
|
||
|
</HTML>
|