Sign in Join
FPDoc Onlineexperiment

RaiseLastOSError procedure

In unit sysutils

Raise an exception with the last Operating System error code.

Declaration

pascal
procedure RaiseLastOSError; overload

Description

RaiseLastOSError raises an EOSError exception with the error code returned by GetLastOSError. If the Error code is nonzero, then the corresponding error message will be returned. If the error code is zero, a standard message will be returned.

Errors

This procedure may not be implemented on all platforms. If it is not, then a normal Exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.