C # Self-study Road 16

Source: Internet
Author: User

16. Debugging and Exception handling

System. The exception class is the base class for the exception class and is generally not used directly, it does not reflect the specific exception information, but it uses its derived class.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/5E/1C/wKiom1UpJeTAgWG4AAIW7iQqJ9E749.jpg "title=" QZEMEC8AKPU3) i{_2cj4dz6.png "alt=" Wkiom1upjetagwg4aaiw7iqqj9e749.jpg "/>


There are three forms of try-catch-finally:

Try-catch

Try-finally

Try-catch-finaaly


The try is the block that detects the exception, the catch is the fast that matches the exception, and finally the fast must be executed.

The exception subclass is placed before the exception parent class.


This article from "Very blog" blog, reproduced please contact the author!

C # Self-study Road 16

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.