Objek ASP ASPERror


Objek ASPError menampilkan informasi tentang kesalahan dalam skrip.


Objek ASPERror

Objek ASPError diimplementasikan di ASP 3.0 dan tersedia di IIS5 dan yang lebih baru.

Objek ASPError digunakan untuk menampilkan informasi rinci tentang kesalahan yang terjadi pada skrip di halaman ASP.

Catatan: Objek ASPError dibuat saat Server.GetLastError dipanggil, sehingga informasi galat hanya dapat diakses dengan menggunakan metode Server.GetLastError.

Properti objek ASPError dijelaskan di bawah ini (semua properti hanya-baca):

Properti

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