RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.RaiseLastOSError Function

Raises an exception for the last occurring OS or system library error.

Pascal
procedure RaiseLastOSError; overload;
procedure RaiseLastOSError(LastError: Integer); overload;
C++
RaiseLastOSError();
RaiseLastOSError(int LastError);

SysUtils

Call RaiseLastOSError to raise an EOSError exception for the last OS API call that failed. RaiseLastOSError retrieves the code for the last occurring API call error, if any. If this belongs to a previously occurring error, RaiseLastOSError raises an EOSError exception with the error code and message associated with that error. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!