The IASPError exposes read-only properties describing the last error event. A pointer to IASPError is returned by the IServer::GetLastError method. IASPError exposes the following methods:
IASPError::get_ASPCode | Returns an error code generated by IIS. It does not apply to scripting errors, only to errors generated by COM components. |
IASPError::get_Number | Returns the standard COM error code. |
IASPError::get_Source | Indicates if the source of the error was internal to ASP, the scripting language, or an object. |
IASPError::get_FileName | Indicates the name of the .asp file that was being processed when the error occurred. |
IASPError::get_LineNumber | Indicates the line within the .asp file where the error was generated. |
IASPError::get_Description | Returns a short description of the error. |
IASPError::get_ASPDescription | Returns a more detailed description of the error if it is an ASP related error. |