1
0
Fork 0
cl-sites/HyperSpec-7-0/HyperSpec/Body/e_cnd.htm
2024-04-01 10:24:07 +02:00

40 lines
6.9 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: Condition Type CONDITION</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="c_condit.htm">
<LINK REL=UP HREF="c_condit.htm">
<LINK REL=NEXT HREF="e_warnin.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="c_condit.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Previous]" SRC="../Graphics/Prev.gif" ALIGN=Bottom></A><A REL=UP HREF="c_condit.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Up]" SRC="../Graphics/Up.gif" ALIGN=Bottom></A><A REL=NEXT HREF="e_warnin.htm"><IMG WIDTH=40 HEIGHT=40 ALT="[Next]" SRC="../Graphics/Next.gif" ALIGN=Bottom></A></H1>
<HR>
<A NAME="condition"><I>Condition Type</I> <B>CONDITION</B></A> <P>
<P>
<P><B>Class Precedence List:</B><P>
<A REL=DEFINITION HREF="#condition"><B>condition</B></A>, <A REL=DEFINITION HREF="t_t.htm#t"><B>t</B></A> <P>
<P><B>Description:</B><P>
<P>
All types of <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>conditions</I></A>, whether error or non-error, must inherit from this <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>type</I></A>. <P>
No additional <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtype</I></A> relationships among the specified <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="#condition"><B>condition</B></A> are allowed, except when explicitly mentioned in the text; however implementations are permitted to introduce additional <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A> and one of these <A REL=DEFINITION HREF="26_glo_t.htm#type"><I>types</I></A> can be a <A REL=DEFINITION HREF="26_glo_s.htm#subtype"><I>subtype</I></A> of any number of the <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="#condition"><B>condition</B></A>. <P>
Whether a user-defined <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> has <A REL=DEFINITION HREF="26_glo_s.htm#slot"><I>slots</I></A> that are accessible by <A REL=DEFINITION HREF="m_w_slts.htm#with-slots"><I>with-slots</I></A> is <A REL=DEFINITION HREF="26_glo_i.htm#implementation-dependent"><I>implementation-dependent</I></A>. Furthermore, even in an <A REL=DEFINITION HREF="26_glo_i.htm#implementation"><I>implementation</I></A> in which user-defined <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> would have <A REL=DEFINITION HREF="26_glo_s.htm#slot"><I>slots</I></A>, it is <A REL=DEFINITION HREF="26_glo_i.htm#implementation-dependent"><I>implementation-dependent</I></A> whether any <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> defined in this document have such <A REL=DEFINITION HREF="26_glo_s.htm#slot"><I>slots</I></A> or, if they do, what their <A REL=DEFINITION HREF="26_glo_n.htm#name"><I>names</I></A> might be; only the reader functions documented by this specification may be relied upon by portable code. <P>
<A REL=DEFINITION HREF="26_glo_c.htm#conforming_code"><I>Conforming code</I></A> must observe the following restrictions related to <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>conditions</I></A>: <P>
<P><DL><DT>* <A REL=DEFINITION HREF="m_defi_5.htm#define-condition"><B>define-condition</B></A>, not <A REL=DEFINITION HREF="m_defcla.htm#defclass"><B>defclass</B></A>, must be used to define new <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>. <P><DD>
<DT>* <A REL=DEFINITION HREF="f_mk_cnd.htm#make-condition"><B>make-condition</B></A>, not <A REL=DEFINITION HREF="f_mk_ins.htm#make-instance"><B>make-instance</B></A>, must be used to create <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>objects</I></A> explicitly. <P><DD>
<DT>* The <TT>:report</TT> option of <A REL=DEFINITION HREF="m_defi_5.htm#define-condition"><B>define-condition</B></A>, not <A REL=DEFINITION HREF="m_defmet.htm#defmethod"><B>defmethod</B></A> for <A REL=DEFINITION HREF="f_pr_obj.htm#print-object"><B>print-object</B></A>, must be used to define a condition reporter. <P><DD>
<DT>* <A REL=DEFINITION HREF="f_slt_va.htm#slot-value"><B>slot-value</B></A>, <A REL=DEFINITION HREF="f_slt_bo.htm#slot-boundp"><B>slot-boundp</B></A>, <A REL=DEFINITION HREF="f_slt_ma.htm#slot-makunbound"><B>slot-makunbound</B></A>, and <A REL=DEFINITION HREF="m_w_slts.htm#with-slots"><B>with-slots</B></A> must not be used on <A REL=DEFINITION HREF="26_glo_c.htm#condition"><I>condition</I></A> <A REL=DEFINITION HREF="26_glo_o.htm#object"><I>objects</I></A>. Instead, the appropriate accessor functions (defined by <A REL=DEFINITION HREF="m_defi_5.htm#define-condition"><B>define-condition</B></A>) should be used. <P><DD></DL> <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/iss077.htm">CONDITION-SLOTS:HIDDEN</A><LI> <A REL=CHILD HREF="../Issues/iss049.htm">CLOS-CONDITIONS:INTEGRATE</A><LI> <A REL=CHILD HREF="../Issues/iss048.htm">CLOS-CONDITIONS-AGAIN:ALLOW-SUBSET</A><LI> <A REL=CHILD HREF="../Issues/iss075.htm">CONDITION-RESTARTS:BUGGY</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>