Đối tượng ASP ASPError
Đối tượng ASPError hiển thị thông tin về lỗi trong tập lệnh.
Đối tượng ASPError
Đối tượng ASPError được triển khai trong ASP 3.0 và có sẵn trong IIS5 trở lên.
Đối tượng ASPError được sử dụng để hiển thị thông tin chi tiết về bất kỳ lỗi nào xảy ra trong các tập lệnh trong trang ASP.
Lưu ý: Đối tượng ASPError được tạo khi Server.GetLastError được gọi, do đó thông tin lỗi chỉ có thể được truy cập bằng cách sử dụng phương thức Server.GetLastError.
Các thuộc tính của đối tượng ASPError được mô tả bên dưới (tất cả các thuộc tính đều ở chế độ chỉ đọc):
Của cải
Property | Description |
---|---|
ASPCode | Returns an error code generated by IIS |
ASPDescription | Returns a detailed description of the error (if the error is ASP-related) |
Category | Returns the source of the error (was the error generated by ASP? By a scripting language? By an object?) |
Column | Returns the column position within the file that generated the error |
Description | Returns a short description of the error |
File | Returns the name of the ASP file that generated the error |
Line | Returns the line number where the error was detected |
Number | Returns the standard COM error code for the error |
Source | Returns the actual source code of the line where the error occurred |