VB. NET Exception Handling

Source: Internet
Author: User

Errors often occur in actual programming. Once an error occurs, you must quickly find the error and find the correct solution. In the VB. NET development environment, the provided resources can quickly locate the cause of the error and correct the error.

I. Error Type 1. Syntax Error

2. runtime error
3. logical error

2. Program monitoring 1. Program Working Mode
2. breakpoint
Iii. Code Standardization

Using standard naming conventions, correct code formats, and good code comments helps improve code readability and maintainability, and quickly identify the cause of the error when an error occurs.

1. Naming Conventions comply with naming rules
2. Code comments
4. Exception Handling provides a way to handle errors that may occur in code blocks, while the code can still run. You can use structured exception handling in applications to handle potential errors in a scheduled manner and avoid affecting applications.

1. Exception

2. Throw exceptions during application execution or when exceptions occur, throw statements can be used to throw exceptions. The throw statement has only one parameter, that is, the exception object to be thrown.

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.