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