2010-03-30 Jb Evain <jbevain@novell.com>
[mcs.git] / docs / ecma334 / 23.1.xml
blobd2631c1efbdc1fb1144b7edc36f9515f6d59c219
1 <?xml version="1.0"?>
2 <clause number="23.1" title="Causes of exceptions">
3   <paragraph>Exception can be thrown in two different ways. <list><list_item> A throw statement (<hyperlink>15.9.5</hyperlink>) throws an exception immediately and unconditionally. Control never reaches the statement immediately following the throw. </list_item><list_item> Certain exceptional conditions that arise during the processing of C# statements and expression cause an exception in certain circumstances when the operation cannot be completed normally. For example, an integer division operation (<hyperlink>14.7.2</hyperlink>) throws a System.DivideByZeroException if the denominator is zero. See <hyperlink>23.4</hyperlink> for a list of the various exceptions that can occur in this way. </list_item></list></paragraph>
4 </clause>