ADO ObjectsLesson 72Free preview
ADO Error
This lesson is part of ASP · All levels
Summary
The Error object represents an error generated by the provider or database during the ADO operation. Each Connection has a collection of Errors that accommodates all errors from the last operation, complete with Number and Description. By checking this collection, the app can display friendly messages instead of crashes.
Key points
- The conn.Errors collection contains ADO error from the last operation.
- Number contains error code, description contains brief description.
- ADO error is different from ordinary runtime script error.
- Always handle errors so users don't see the technical details.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.