ASP.NET has no the Error Object, so ASP2ASPX replaces it with Exception class of .NET. Please see also the GetLastError of the ASP.NET server object.
See also Server Object