?? sta_8979.htm
字號:
<HTML><HEAD><TITLE>18.2 The Standard Exception Hierarchy</TITLE></HEAD><BODY><A HREF="ug1.htm"><IMG SRC="images/banner.gif"></A><BR><A HREF="ove_3018.htm"><IMG SRC="images/prev.gif"></A><A HREF="booktoc1.htm"><IMG SRC="images/toc.gif"></A><A HREF="tindex1.htm"><IMG SRC="images/tindex.gif"></A><A HREF="usi_0332.htm"><IMG SRC="images/next.gif"></A><BR><STRONG>Click on the banner to return to the user guide home page.</STRONG><H2>18.2 The Standard Exception Hierarchy</H2><A NAME="idx211"><!></A><P>The library implements the two-category error model described above with a set of classes. These classes are defined in the <SAMP>stdexcept</SAMP> header file. They can be used to catch exceptions thrown by the library and to throw exceptions from your own code.</P><P>The classes are related through inheritance. The inheritance hierarchy looks like this:</P><PRE><A HREF="../stdlibcr/exc_9785.htm"><B><I>exception</I></B></A> <B><I>logic_error</I></B> <B><I>domain_error</I></B> <B><I>invalid_argument</I></B> <B><I>length_error</I></B> <B><I>out_of_range</I></B> <B><I>runtime_error</I></B> <B><I>range_error</I></B> <B><I>overflow_error </I></B> <B><I>underflow_error </I></B></PRE> <A NAME="idx212"><!></A><P>Classes <B><I>logic_error</I></B> and <B><I>runtime_error</I></B> inherit from class <A HREF="../stdlibcr/exc_9785.htm"><B><I>exception</I></B></A>. All other exception classes inherit from either <B><I>logic_error</I></B> or <B><I>runtime_error</I></B>.</P><HR><A HREF="ove_3018.htm"><IMG SRC="images/prev.gif"></A> <A HREF="booktoc1.htm"><IMG SRC="images/toc.gif"></A><A HREF="tindex1.htm"><IMG SRC="images/tindex.gif"></A><A HREF="usi_0332.htm"><IMG SRC="images/next.gif"></A><P>©Copyright 1996, Rogue Wave Software, Inc.</P></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -