ASP ASPERror Nesnesi
ASPERror nesnesi, komut dosyalarındaki hatalarla ilgili bilgileri görüntüler.
ASPERror Nesnesi
ASPERror nesnesi ASP 3.0'da uygulandı ve IIS5 ve sonraki sürümlerde kullanılabilir.
ASPERror nesnesi, bir ASP sayfasındaki komut dosyalarında oluşan herhangi bir hatanın ayrıntılı bilgilerini görüntülemek için kullanılır.
Not: ASPERror nesnesi, Server.GetLastError çağrıldığında oluşturulur, bu nedenle hata bilgilerine yalnızca Server.GetLastError yöntemi kullanılarak erişilebilir.
ASPERror nesnesinin özellikleri aşağıda açıklanmıştır (tüm özellikler salt okunurdur):
Özellikler
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 |