getLastError
Returns the most recent nonzero error code.
Method of
Syntax
int getLastError ();Parameters
Returns
The most recent nonzero error code. For a list of possible values, see Return Codes.
Description
Use
getLastErrormethod to obtain the most recent nonzero error code sinceinitInstallorresetErrorwere called. This method allows you to defer checking for error codes each time you calladdFileoraddDirectoryuntil the lastaddFileoraddDirectorycall.The
getLastErrormethod does not return errors from methods that return objects, such asgetFolder.Example
The following example calls
getLastErrorafter a series ofaddFilecalls:addFile("npplug", ...); addFile("/MS/Shared/ctl3d.dll", ...); addFile("/NetHelp/royalplug/royalhelp.html",...); err = getLastError();
| Netscape Communications devedge.netscape.com |