ASP ASPErrorวัตถุ
ออบเจ็กต์ ASPError แสดงข้อมูลเกี่ยวกับข้อผิดพลาดในสคริปต์
วัตถุ ASPError
ออบเจ็กต์ ASPError ถูกนำไปใช้ใน ASP 3.0 และพร้อมใช้งานใน IIS5 และใหม่กว่า
ออบเจ็กต์ ASPError ใช้เพื่อแสดงข้อมูลโดยละเอียดของข้อผิดพลาดใดๆ ที่เกิดขึ้นในสคริปต์ในหน้า ASP
หมายเหตุ:อ็อบเจ็กต์ ASPError ถูกสร้างขึ้นเมื่อมีการเรียก Server.GetLastError ดังนั้นข้อมูลข้อผิดพลาดสามารถเข้าถึงได้โดยใช้เมธอด Server.GetLastError เท่านั้น
คุณสมบัติของอ็อบเจ็กต์ ASPError มีการอธิบายไว้ด้านล่าง (คุณสมบัติทั้งหมดเป็นแบบอ่านอย่างเดียว):
คุณสมบัติ
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 |