📄 document title.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0063)http://topaz.cs.byu.edu/text/html/Textbook/Chapter12/index.html -->
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>Document Title</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="./index_files/filelist.xml" rel=File-List><LINK
href="./index_files/editdata.mso" rel=Edit-Time-Data><!--[if !mso]>
<STYLE>v\:* {
BEHAVIOR: url(#default#VML)
}
o\:* {
BEHAVIOR: url(#default#VML)
}
w\:* {
BEHAVIOR: url(#default#VML)
}
.shape {
BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Laramie Leavitt</o:Author>
<o:LastAuthor>Laramie Leavitt</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>3</o:TotalTime>
<o:Created>2000-03-10T03:28:00Z</o:Created>
<o:LastSaved>2000-03-10T03:31:00Z</o:LastSaved>
<o:Pages>10</o:Pages>
<o:Words>5581</o:Words>
<o:Characters>31815</o:Characters>
<o:Company>BYU COR Lab</o:Company>
<o:Lines>265</o:Lines>
<o:Paragraphs>63</o:Paragraphs>
<o:CharactersWithSpaces>39071</o:CharactersWithSpaces>
<o:Version>9.2720</o:Version>
</o:DocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Print</w:View>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
font-family: Wingdings;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-columns: 2 not-even 2.75in .5in 2.75in; mso-paper-source: 0; }
@page Section2 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-columns: 2 even .2in; mso-paper-source: 0; }
@page Section3 {size: 8.5in 11.0in; margin: .5in .3in .5in .6in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-columns: 2 not-even 3.4in .5in 3.7in; mso-paper-source: 0; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
P {
FONT-SIZE: 12pt; FONT-FAMILY: "Times New Roman"; mso-fareast-font-family: "Times New Roman"
}
PRE {
FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"; mso-fareast-font-family: "Courier New"
}
TT {
mso-fareast-font-family: "Courier New"; mso-ascii-font-family: "Courier New"; mso-hansi-font-family: "Courier New"; mso-bidi-font-family: "Courier New"
}
DIV.Section1 {
page: Section1
}
DIV.Section2 {
page: Section2
}
DIV.Section3 {
page: Section3
}
OL {
MARGIN-BOTTOM: 0in
}
UL {
MARGIN-BOTTOM: 0in
}
</STYLE>
</HEAD>
<BODY lang=EN-US style="tab-interval: .5in" vLink=blue link=blue>
<DIV class=Section1>
<H1 style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 9pt; mso-bidi-font-size: 24.0pt">Chapter 12<BR>Exceptions
<o:p></o:p></SPAN></H1>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<H2><SPAN style="FONT-SIZE: 9pt; mso-bidi-font-size: 18.0pt"><!----------------------------------------------------------------------------->12.1
Introduction<o:p></o:p></SPAN></H2>
<P class=MsoNormal><SPAN style="FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt"><!----------------------------------------------------------------------------->Exception
handling is a mechanism that allows a programmer to separate the code that is
executed in response to an error from the location where the error takes place
[HMP97]. These errors, or exceptions, may arise in any number of different ways.
One way is that the programmer may explicitly state that if a given condition is
met, then an exception occurs. Another way is that the run-time system itself
detects an illegal condition (such as a division by zero, for
instance).<o:p></o:p></SPAN></P>
<P><SPAN style="FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt">Accepted terminology
about exceptions refers to an exception being 搑aised
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -