PB Error Handling

Source: Internet
Author: User
Tags error code error handling

Author: Xingda Computer technology company (www.study01job.com) Guo Baoli

There are several reasons for standardizing error handling and status monitoring procedures:

L to be treated uniformly throughout the application;

• Reduce the likelihood of accidental leakage of unique processing;

• Reduce unnecessary hassle in future software maintenance.

The following aspects of the inspection can be considered in a standard way to deal with:

L coupling error;

L Database access error;

L Data entry error;

L Program execution error.

Program execution error handling must clearly indicate the cause of the error or possible.

Database operation errors must indicate a database error code (SQLCA.SQLCODE) and a Database error description (Sqlca.sqlerrtext), that is, the following code must be handled in the database operation error:

"~r~n~r~n Error code:" + String (SQLCA. SQLCODE) &

+ "~r~n~r~n error message:" + SQLCA. Sqlerrtext)

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.