The IServer::GetLastError method returns an ASP error object that describes the last error that occurred while running a script.
If a custom error has been defined for a virtual Web server, ASP application, directory, or file, it may refer to an .asp file. If this is the case, when an error occurs during the running of an .asp file the server will automatically transfer to this asp file via the IServer::Transfer method. All of the state information from the executing .asp file will be available to the .asp file that is handling the error. In addition, the methods exposed by the IASPError interface will be available.
Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.