The IASPError::get_Source method returns a BSTR indicating if the error was generated by the .asp file, the scripting engine, or an object instance.
HRESULT get_Source( BSTR *pbstrSource // pointer to a BSTR describing where the error was generated
);